Thanks for pointing that out. You can probably tell I'm a SAS programmer. Appreciate the suggestion on the error code. I'll check that out.
-
Login or Register
- Log in with
*estimate;
if "`exposure'"~="" local exposurestr "exposure(`exposure')";
if "`offset'"~="" local offsetstr "offset(`offset')";
`svypre' glm `varlist' `xnames' if `touse' [`weight' `exp'], `constant'
`exposurestr' `offsetstr' scale(`scale') `options' ;
*check whether a regressor was dropped;
*if so, give up because we can't transform back to original coordinates;
if `princomps'+`cshift'+`n_extra'>e(k) {;
di as error "regressor collinear with age, period or cohort variables, or too many empty cells in age-by-period matrix";
exit=405;
};
svyset [pw=WTFA_SC3i], strata(STRATUMRi) psu(PSUi) singleunit(centered)
apc_ie4 AMR2Ri /*
*/ if A_imputation_==1 , /*
*/ age(apc_agei) period(apc_periodi) cohort(apc_cohorti) family(binomial) /*
*/ link(logit) iterate(20) /*
*/ svyopts("svy, subpop(agedom_reci)")
if `c(rc)' == 405 {
other code here...
]
Comment