I am running some stratified multiple regression models where I am using the suest and the posestimation "test" command to see if the relationship between my DV and IV is significantly different across my two subsamples (first-gen students and continuing-gen students). Prior to multiple imputation, I had been using the suest command followed by the test command to accomplish this with the following code:
This gives me what I'm looking for with no issues. However, if I try to run multi-level mixed effects regression, store the results, and use suest to estimate both models simultaneously, I get an error message stating that meglm is not supported by suest r(322);. The below code produces the error message:
I essentially just need to be able to test to see whether the differences in the coefficients for the "singleparent" variable between continuing-gen and first-gen students are significant. Any help on this is much appreciated!
Code:
logit everenrollcollege bioguardian singleparent guardianonly twobioparent if firstgen==0 est sto cgen logit everenrollcollege bioguardian singleparent guardianonly twobioparent if firstgen==1 est sto fgen suest cgen fgen, vce(cluster schoolid) cformat(%9.3f) test [cgen_everenrollcollege]singleparent=[fgen_everenrollcollege]singleparent
Code:
melogit everenrollcollege bioguardian singleparent guardianonly twobioparent if firstgen==0 || id: est sto cgen melogit everenrollcollege bioguardian singleparent guardianonly twobioparent if firstgen==1 || id: est sto fgen suest cgen fgen, vce(cluster schoolid) cformat(%9.3f)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input float(firstgen everenrollcollege bioguardian singleparent guardianonly twobioparent) 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 1 0 0 1 1 0 0 0 1 1 0 0 1 0 0 0 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 0 1 1 0 0 0 1 1 1 0 0 0 0 1 0 0 0 1 0 1 0 1 0 0 1 0 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 1 1 0 0 1 0 0 1 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 1 0 1 1 0 0 0 1 1 1 0 0 0 1 1 1 0 0 0 1 1 0 1 0 0 0 1 0 0 1 0 0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 0 0 1 1 1 0 1 0 0 1 1 0 0 0 1 1 0 1 0 0 0 1 1 0 1 0 0 1 1 0 1 0 0 1 0 0 1 0 0 1 1 0 0 0 1 1 0 1 0 0 0 1 1 1 0 0 0 0 1 0 0 0 1 1 1 0 1 0 0 1 1 0 1 0 0 end label values firstgen firstgencategory label def firstgencategory 0 "Non-first-gen", modify label def firstgencategory 1 "First-gen", modify label values everenrollcollege everattendcategory label def everattendcategory 0 "0.No", modify label def everattendcategory 1 "1.Yes", modify
Comment