Dear all,
I am having some trouble running a multi-level logistic regression on my dataset. I am using stata 15.1 and the melogit command. My dataset consists of 615 patients (MRN) with 1'050 observations. Each patients had his bone density (NECK_BMD) and his fracture status (hip) measured multiple times. I am trying to run a multi-level logistic regression in order to see if bone density predicts fracture status.
My code is the following:
It seemed pretty straightforward but unfortunately the model does not converge even after a few hundreds iterations. Some iterations are indicated as non concave.
I tried with the meqrlogit as follows:
. Here stata tells me: "Initial values not feasible".
Could it be a rare event problem as my dependent variable hip has 49 "1" and 1'001 "0"...
Thanks a lot for your help colleagues.
David J
I am having some trouble running a multi-level logistic regression on my dataset. I am using stata 15.1 and the melogit command. My dataset consists of 615 patients (MRN) with 1'050 observations. Each patients had his bone density (NECK_BMD) and his fracture status (hip) measured multiple times. I am trying to run a multi-level logistic regression in order to see if bone density predicts fracture status.
My code is the following:
Code:
melogit hip NECK_BMD || MRN:
I tried with the meqrlogit as follows:
Code:
meqrlogit hip NECK_BMD || MRN:
Could it be a rare event problem as my dependent variable hip has 49 "1" and 1'001 "0"...
Thanks a lot for your help colleagues.
David J
Comment