Thank you for your assistance with my syntax in Ngene. I have attempted to add interactions with the attributes that I believe will affect sensitivity, as well as adding a few more restricions. I am receiving error messages for incompatibl elements.
Any help is greatly appreciated.
Thank you in advance,
Annie
- Code: Select all
design
;alts = service1* , service2*
;rows = 60
;block = 6
;alg = mfederov ?(candidates = explicit_partial_profiles.csv)
;eff = (mnl,d)
;reject:
service1.Birthplace=0 and service2.Birthplace=1, ?Reject Service 1 = Homebirth and Service 2 = Hospital
service1.Birthplace=1 and service2.Birthplace=0, ?Reject Service 1 = Hospital and Service 2 = Homebirth
service2.Birthplace=0 and service1.Birthplace=1, ?Reject Service 2 = Homebirth and Service 1 = Hospital
service2.Birthplace=1 and service1.Birthplace=0 ?Reject Service 2 = Hospital and Service 1 = Homebirth
;require:
service1.Birthplace[0] = service1.Duration[0],
service1.Birthplace[0] = service1.SP_after_birth[0],
service2.Birthplace[0] = service2.Duration[0],
service2.Birthplace[0] = service2.SP_after_birth[0],
service1.Nrchildren[0] = service2.Nrchildren[0], ?Requires no. of children to be equal for each service
service1.Nrchildren[1] = service2.Nrchildren[1],
service1.Nrchildren[0] <> service1.SP_outpatients[1], ?Requires no. of children = 0, to not equal SP OP =1(to allow children)
service2.Nrchildren[0] <> service2.SP_outpatients[1] ?Same as above
;model:
U(service1) = b1.dummy[0.3|0.2|0.1] * A_care[1,2,3,0]
+ i1 * A_care.dummy[1] * Nrchildren[0,1]
+ i2 * A_care.dummy[2] * Nrchildren[0,1]
+ i3 * A_care.dummy[3] * Nrchildren[0,1]
+ i4 * A_care.dummy[0] * Nrchildren[0,1]
+ b2.dummy[0.3|0.1] * A_education[1,2,0]
+ i5 * A_education.dummy[1] * Nrchildren[0,1]
+ i6 * A_education.dummy[2] * Nrchildren[0,1]
+ i7 * A_education.dummy[0] * Nrchildren[0,1]
+ b3.dummy[0.5|0.1] * Birthplace[1,2,0]
+ b4.dummy[0.3|0.3|0.1|0.1] * Duration[1,2,3,4,0] ?assumed prior with reference to original base
+ i8 * Duration.dummy[1] * Nrchildren[0,1]
+ i9 * Duration.dummy[2] * Nrchildren[0,1]
+ i10 * Duration.dummy[3] * Nrchildren[0,1]
+ i11 * Duration.dummy[4] * Nrchildren[0,1]
+ b5.dummy[0.3|0.3|0.2|0.1|0.1] * SP_after_birth[1,2,3,4,5,0] ?assumed prior with refernce to original base
+ b6.dummy[0.5|0.3|0.1] * Breastfeeding[1,2,3,0]
+i12 * Breastfeeding.dummy[1] *Nrchildren[0,1]
+i13 * Breastfeeding.dummy[2] *Nrchildren[0,1]
+i14 * Breastfeeding.dummy[3] *Nrchildren[0,1]
+i15 * Breastfeeding.dummy[0] *Nrchildren[0,1]
+ b7.dummy[0.3|0.3|0.1] * P_care[1,2,3,0]
+i16 * P_care.dummy[1] * Nrchildren[0,1]
+i17 * P_care.dummy[2] * Nrchildren[0,1]
+i18 * P_care.dummy[3] * Nrchildren[0,1]
+i19 * P_care.dummy[0] * Nrchildren[0,1]
+ b8.dummy[0.5|0.3|0.1] * SP_outpatients[1,2,3,0]
+ b9 * Nrchildren[0,1]
/
U(service2) = b1 * A_care
+ b2 * A_education
+ b3 * Birthplace
+ b4 * Duration
+ b5 * SP_after_birth
+ b6 * Breastfeeding
+ b7 * P_care
+ b8 * SP_outpatients
+ b9 * Nrchildren
$