统计分析AS练习.docVIP

  • 9
  • 0
  • 约6.33千字
  • 约 16页
  • 2018-09-08 发布于浙江
  • 举报
统计分析AS练习

第七章 t检验 单样本t检测,用means、 univariate data temp; input x@@; y=x-20.7; cards; 20.99 20.41 20.10 20.00 20.91 22.60 20.99 20.42 20.90 22.99 23.12 20.89 ; proc means mean stderr t probt; var y; run; data temp; input x@@; y=x-20.7; cards; 20.99 20.41 20.10 20.00 20.91 22.60 20.99 20.42 20.90 22.99 23.12 20.89 ; proc univariate normal; var y; run; 无原始数据的单样本t检验: data temp; input u0 u1 s n; t=(u1-u0)/(s/sqrt(n)); v=n-1; p=probt(t,v); cards; 72 74.2 6.5 25 ; proc print; run; 配对的t检测:有两个对比的检测 有ttest means univariate data temp; input id a b; cards; 1 2.41 2.80 2 2.90 3.04 3 2.75 1.88 4 2.23 3.43 5 3.67 3

文档评论(0)

1亿VIP精品文档

相关文档