sas做广义估计方程
2012-04-26 21:04
246 查看
赵目等在“纵向数据下广义估计方程估计”一文从数学角度对广义估计方程进行了探讨,这里转载个sas做广义估计方程的例子:
data thall; input id y visit trt bline age; intercpt=1; cards; 104 5 1 0 11 31 104 3 2 0 11 31 104 3 3 0 11 31 104 3 4 0 11 31 106 3 1 0 11 30 106 5 2 0 11 30 106 3 3 0 11 30 106 3 4 0 11 30 107 2 1 0 6 25 107 4 2 0 6 25 107 0 3 0 6 25 107 5 4 0 6 25 114 4 1 0 8 36 114 4 2 0 8 36 ;run; data new; set thall; output; if visit=1 then do; y=bline; visit=0; output; end; run; data new2; set new; if id ne 107; if visit=0 then do; x1=0; ltime=log(8); end; else do; x1=1; ltime=log(2); end; x1trt=x1*trt; run; proc genmod data=new2; model y=x1 | trt / d=poisson offset=ltime itprint; class id; repeated subject=id / corrw type=exch; run; quit;
相关文章推荐
- 问题: Schrodinger方程的广义Strichartz估计
- SPSS—回归—曲线估计方程案例解析
- 问题: 一维Schrodinger方程的双线性Strichartz估计的最佳性
- 使用牛顿迭代方法(Newton’s method)来估计方程的解
- 服从广义高斯分布样本的参数估计
- 生存分析cox回归R语言与SAS以及STATA参数估计结果不同
- 问题: Schrodinger方程的径向Strichartz估计的端点情形
- 问题: Schrodinger方程的非齐次Strichartz估计
- 时间序列分析步骤及sas代码
- 【暴力搜索】[POJ 1186]方程的解数
- 基于VFH描述子的聚类识别与6自由度位姿估计的学习
- SAS硬盘与SATA硬盘有什么区别
- SAS 补零
- 最大似然估计学习总结
- 极大似然估计与最小二乘法
- 机器学习之参数估计与矩阵运算基础
- SAS定义宏变量三种方法
- Lyapunov、Sylvester和Riccati方程是控制系统常用到的几个方程,应用和计算比较广泛
- SAS 移动平均
- SAS里面的optmodel过程