Hi, I am trying to estimate marginal effects after running a logistic model. The logistic model is fine but the post-estimation is giving me quite the headache. I am getting an error message saying that there is a conformability error. (I believe that means that there is a mismatch of the unit between my continuous income variable and the binary variable of trust.) I got this when running the following:
logit mammogramadherent i.race_r i.age i.education2 i.employment c.income i.family i.married i.citizenship i.obesity i.insurance i.
> provider i.safety i.trust i.placeofresidence i.produce i.racerxsafety i.racerxtrust i.racerxproduce
.
. mgen, at( income=(.5(5)60) trust=0) atmean stub(Some Trust) ///
> predlabel( Some Trust)
conformability error
r(503);
So, trying to troubleshot and fix the conformability error, I recoded the income continuous variable to a binary variable, e.g. income2.
I then received the following error message:
. estimates restore blm
(results blm are active now)
.
. mgen, at( income2=(.5(5)60) trust=0) atmean stub(Some Trust) ///
> predlabel( Some Trust)
at values for factor income2 do not sum to 1
Can someone please help me fix this conformability issue?
Related Posts with R 503 Conformability Issue | Help Please!!!
Dummy for event in prior ten yearsThis is my first post, I hope I express myself and my question in an understandable manner. I have …
Removing a list of string from mailing addressHi all, I have a database of mailing address that I need to do some cleaning on it. Some of the add…
Changing background colors using coefplotHello, I am trying to change the background color of my graph to white. However, Stata is not recog…
Creating a matched control cohort for a survival analysisDear StataList, I'm looking for advice re. creating a control cohort matched 1:1 on baseline demogr…
Need Help: 95% Confidence Interval not Equal to Estimate +/- 1.96 times of SEI need some help for the standard error and 95% confidence interval. My understanding is that the 95…
Subscribe to:
Post Comments (Atom)
0 Response to R 503 Conformability Issue | Help Please!!!
Post a Comment