def setUp(self): # 2740200061fos self._test_case_one = Person( age=54.060233, gender=NHANESGender.FEMALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_WHITE, sbp=120, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.HIGHSCHOOLGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestDementiaModel.initializeAfib, initializationRepository=InitializationRepository(), ) self._test_case_one._gcp[0] = 58.68 self._test_case_one._gcp.append(self._test_case_one._gcp[0] - 1.1078128) # 2740201178fos self._test_case_two = Person( age=34.504449, gender=NHANESGender.MALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_WHITE, sbp=120, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.SOMECOLLEGE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestDementiaModel.initializeAfib, initializationRepository=InitializationRepository(), ) self._test_case_two._gcp[0] = 58.68 self._test_case_two._gcp.append(self._test_case_two._gcp[0] - 1.7339989) self._test_case_one_parameteric = Person( age=40, gender=NHANESGender.MALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_BLACK, sbp=120, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.LESSTHANHIGHSCHOOL, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestDementiaModel.initializeAfib, initializationRepository=InitializationRepository(), ) self._test_case_one_parameteric._gcp[0] = 25 # GCP slope is zero self._test_case_one_parameteric._gcp.append( self._test_case_one._gcp[0]) # test case 71 in rep_gdta. self._test_case_two_parametric = Person( age=80, gender=NHANESGender.FEMALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_BLACK, sbp=120, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.COLLEGEGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestDementiaModel.initializeAfib, initializationRepository=InitializationRepository(), ) self._test_case_two_parametric._gcp[0] = 75 self._test_case_two_parametric._gcp.append(self._test_case_two._gcp[0]) # test case 72 in rep_gdta. self._test_case_three_parametric = Person( age=80, gender=NHANESGender.FEMALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_WHITE, sbp=120, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.COLLEGEGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestDementiaModel.initializeAfib, initializationRepository=InitializationRepository(), ) self._test_case_three_parametric._gcp[0] = 75 self._test_case_three_parametric._gcp.append( self._test_case_two._gcp[0]) self._population_dataframe = init_vectorized_population_dataframe([ self._test_case_one, self._test_case_two, ])
def setUp(self): self._test_case_one = Person( age=65 - 0.828576318 * 10, gender=NHANESGender.FEMALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_WHITE, sbp=120 + 0.45 * 10, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100 - 1.1 * 10), hdl=50, totChol=127 - 3.64 * 10, ldl=90, trig=150, bmi=26.6 + 15.30517532, waist=94 + 19.3, anyPhysicalActivity=1, education=Education.COLLEGEGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=1, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestGCPModel.initializeAfib, ) self._test_case_two = Person( age=65 - 0.458555784 * 10, gender=NHANESGender.MALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_WHITE, sbp=120 + 0.3 * 10, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100 + 0.732746529 * 10), hdl=50, totChol=127 + 1.18 * 10, ldl=90, trig=150, bmi=26.6 + 0.419305619, waist=94 - 2.5, anyPhysicalActivity=1, education=Education.SOMEHIGHSCHOOL, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestGCPModel.initializeAfib, ) self._test_case_three = Person( age=65 - 0.358692676 * 10, gender=NHANESGender.FEMALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_BLACK, sbp=120 + 2.3 * 10, dbp=80, # guessingon the centering standard for glucose...may have to check a1c=Person.convert_fasting_glucose_to_a1c(100 + 0.8893 * 10), hdl=50, totChol=127 + 4.7769 * 10, ldl=90, trig=150, bmi=26.6 + 2.717159247, waist=94 + 9, anyPhysicalActivity=1, education=Education.LESSTHANHIGHSCHOOL, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.NONE, antiHypertensiveCount=1, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0, initializeAfib=TestGCPModel.initializeAfib, ) self._test_case_one._randomEffects["gcp"] = 0 self._test_case_two._randomEffects["gcp"] = 0 self._test_case_three._randomEffects["gcp"] = 0
def setUp(self): self._black_female_high_cr = Person( age=52, gender=NHANESGender.FEMALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_BLACK, sbp=120, dbp=80, a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.HIGHSCHOOLGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0.8, initializeAfib=TestCKDEquation.initializeAfib, ) self._black_female_low_cr = Person( age=52, gender=NHANESGender.FEMALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_BLACK, sbp=120, dbp=80, a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.HIGHSCHOOLGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0.4, initializeAfib=TestCKDEquation.initializeAfib, ) self._white_male_high_cr = Person( age=52, gender=NHANESGender.MALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_WHITE, sbp=120, dbp=80, a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.HIGHSCHOOLGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=1.2, initializeAfib=TestCKDEquation.initializeAfib, ) self._white_male_low_cr = Person( age=52, gender=NHANESGender.MALE, raceEthnicity=NHANESRaceEthnicity.NON_HISPANIC_WHITE, sbp=120, dbp=80, a1c=Person.convert_fasting_glucose_to_a1c(100), hdl=50, totChol=150, ldl=90, trig=150, bmi=26.6, waist=94, anyPhysicalActivity=1, education=Education.HIGHSCHOOLGRADUATE, smokingStatus=SmokingStatus.NEVER, alcohol=AlcoholCategory.ONETOSIX, antiHypertensiveCount=0, statin=0, otherLipidLoweringMedicationCount=0, creatinine=0.1, initializeAfib=TestCKDEquation.initializeAfib, )