我一直在尝试对我的数据运行修改后的泊松回归。暴露变量有 3 个级别。参考水平为 1。我从未使用过估算语句,也从未被告知如何使用。我的代码语法是否正确?
class exposure_var(ref='1')/ param = ref;
model outcome_var = exposure_var covar1 covar2 cover3 / dist=poisson link=log;
weight weight_var;
estimate 'outcome_var level 2 vs ref' exposure_var 2 1 / exp;
estimate 'outcome_var level 3 vs ref' exposure_var 3 1 / exp;
run;
或者会是这样的吗?
class exposure_var(ref='1')/ param = ref;
model outcome_var = exposure_var covar1 covar2 cover3 / dist=poisson link=log;
weight weight_var;
estimate 'outcome_var level 2 vs ref' exposure_var 2 -1 / exp;
estimate 'outcome_var level 3 vs ref' exposure_var 3 -1 / exp;
run;
甚至类似的东西?
class exposure_var(ref='1')/ param = ref;
model outcome_var = exposure_var covar1 covar2 cover3 / dist=poisson link=log;
weight weight_var;
estimate 'outcome_var level 2 vs ref' exposure_var 2 -1 / exp;
estimate 'outcome_var level 3 vs ref' exposure_var 3 -2 / exp;
run;
提前谢谢您!
看看当您按如下方式指定系数时会发生什么。
估计“outcome_var level 2 vs ref”exposure_var -1 1 0 / exp;