proc surveylogistic data=final_cross varmethod=BRR (fay=0.3);
ods select ParameterEstimates OddsRatios;
weight A_PWGT;
repweights A_PWGT1 - A_PWGT100;
class ecignicotinelevel3_7 (ref="3") age2_7 (ref="1") gender_7 (ref="2") race_7 (ref="1") education_7 (ref="1") income_7 (ref="1") ecigdaily_7 (ref="1") cigformer_7 (ref="1") othertob_7 (ref="1") ecig_device2_7 (ref="1")/ param = ref;
model ecignicotinelevel3_7=age2_7 gender_7 race_7 education_7 income_7 cigformer_7 othertob_7 ecigdaily_7 ecig_device2_7 ecig_time_7 ecig_puff_7/link=glogit;
where dual_7=3 and (ecignicotinelevel3_7=3 | ecignicotinelevel3_7=4);
run;
示例我尝试过的,并且由于错误而不会产生输出:
proc mcmc data=final_cross outpost=posterior seed=1234 nbi=1000 ngi=2000;
ods select ParameterEstimates OddsRatios;
weight A_PWGT;
repweights A_PWGT1 - A_PWGT100;
model ecignicotinelevel3_7(event='3') = age2_7 gender_7 race_7 education_7 income_7cigformer_7 othertob_7 ecigdaily_7 ecig_device2_7ecig_time_7 ecig_puff_7 / link=logit;
prior all ~ normal(0, var=1000);
where dual_7=3 and (ecignicotinelevel3_7=3 | ecignicotinelevel3_7=4);
run;
已添加我收到的错误: ERROR 22-322: Syntax error, expecting one of the following: ;, ACCEPTTOL, AUTOCORLAG, BINARYJOINT, DATA, DIAGNOSTICS, DIC, DISCRETE, INF, INIT, IWISHRWM, JOINTMODEL, LIST, LISTCODE, MAXINDEXPRINT, MAXSUBVALUEPRINT, MAXTUNE, MCHISTORY, MINTUNE, MISSING, MONITOR, NBI, NMC, NOLOGDIST, NTU,优化,前哨,地块,Propcov,Propdist,Reobsinfo,scale,seed,siemeport,simreport,singden,stats,targaccept,targaccepti,targaccepti,thin,thin,trace,truncmaxsd,truncmaxsd,tunewt。错误76-322:语法错误,语句将被忽略。任何洞察力将不胜感激。谢谢!
错误是NGI = 2000。 检查您的拼写