资源描述:
《实验吧-线性回归与卡方分析》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、实验八卡方分析与线性回归植保133裴小津2013010320dataabc;doa=lto2;dob=1to2;inputc@@;output;end;end:cards;2618450200procfreq;weightc;tablesa^b/chisqexpectednopercentnocol;run;TheSASSystem00:19Sunday,JanuaryI,20061TheFREQProcedureTabicofabybabFrequency,Expected,RowPet,1,2,Totalffffffffrfffffffrfffffffr
2、1,26,184,210,34.696,175.3,,12.38,87.62,ffffffffrfffffffrfffffffr2,50,200,250,41.304,208.7,,20.00,80.00,ffffffffrfffffffrfffffffrTotal76384460StatisticsforTabicofabybStatisticDFValueProbffffffffffffffffffffffffffffffffffffffffffffffffffffffChi-Square14.80370.0284LikelihoodRatioChi-S
3、quare14.89440.0269ContinuityAdj.Chi-Square14.26710.0389Mantel-HaenszelChi-Square14.79320.0286PhiCoefficient-0.1022ContingencyCoefficient0.1017Cramer'sV-0.1022Fisher'sExactTestffffffffffffffffffffffffffffffffffCell(1,1)Frequency(F)26Left-sidedPr<=F0.0188Right-sidedPr>=F0.9903TablePr
4、obability(P)0.0091Two-sidedPr<=P0.0321SampleSize=460dataabc;dor=1to2;doc=1to3;inputy@@;output;end;end;cards;264154174159146procfreq;weighty;tablesr*c/chisqexpected;run;TheSASSystem01:06Sunday,January1,20061TheFREQProcedureTableofrbyFrequency,Expected,Percent,RowPet,ColPet,1,2,3,Tot
5、alffffffffrfffffffrfffffffrfffffffr1,26,41,54,121,40.333,40.333,40.333,,4.33,6.83,9.00,20.17,21.49,33.88,44.63,,13.00,20.50,27.00,2,174,159,146,479,159.67,159.67,159.67,,29.00,26.50,24.33,79.83,36.33,33.19,30.48,,87.00,79.50,73.00,ffffffffrfffffffrfffffffrfffffffrTotal20()20()20()6
6、(X)33.3333.3333.33100.00StatisticsforTableofrbycStatisticDFValueProbffffffffffffffffffffffffffffffffffffffffffffffffffffffChi-Square212.19480.0022LikelihoodRatioChi-Square212.48440.0019Mantel-HaenszelChi-Square112.15380.0005PhiCoefficient0.1426ContingencyCoefficient0.1411Cramer’sV0
7、.1426SampleSize=600datanew;inputxy@@;cards;35.51234.11631.7940.3236.8740.2331.71339.2944.2-1proccorr;varxy;01:06Sunday,January1,20063TheCORRProcedurerun;TheSASSystemVariableMaximum44.20000y2Variables:xySimpleStatisticsNMeanStdDevSumMinimum937.077784.25199333.7000031.7000097.777785.
8、5852070.00000-1.0000016.00