实验吧 线性回归与卡方分析_第1页
实验吧 线性回归与卡方分析_第2页
实验吧 线性回归与卡方分析_第3页
实验吧 线性回归与卡方分析_第4页
实验吧 线性回归与卡方分析_第5页
已阅读5页,还剩1页未读 继续免费阅读

付费下载

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

实验八卡方分析与线性回归植保133裴小津dataabc;

doa=1to2;

dob=1to2;

inputc@@;

output;

end;

end;

cards;

2618450200

procfreq;

weightc;

tablesa*b/chisqexpectednopercentnocol;

run;

TheSASSystem00:19Sunday,January1,20061

TheFREQProcedure

Tableofabyb

ab

Frequency‚

Expected‚

RowPct‚1‚2‚Totalƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆ

1‚26‚184‚210‚34.696‚175.3‚

‚12.38‚87.62‚

ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆ

2‚50‚200‚250‚41.304‚208.7‚

‚20.00‚80.00‚

ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆ

Total76384460StatisticsforTableofabyb

2013010320

StatisticDFValueProb

ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒChi-Square14.80370.0284LikelihoodRatioChi-Square14.89440.0269ContinuityAdj.Chi-Square14.26710.0389Mantel-HaenszelChi-Square14.79320.0286PhiCoefficient-0.1022

ContingencyCoefficient0.1017

Cramer'sV-0.1022

Fisher'sExactTest

ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ

Cell(1,1)Frequency(F)26Left-sidedPr<=F0.0188Right-sidedPr>=F0.9903TableProbability(P)0.0091Two-sidedPr<=P0.0321

SampleSize=460

dataabc;

dor=1to2;

doc=1to3;

inputy@@;

output;

end;end;

cards;

264154174159146

procfreq;

weighty;

tablesr*c/chisqexpected;

run;

TheSASSystem01:06Sunday,January1,20061

TheFREQProcedure

Tableofrby

rc

Frequency‚

Expected‚

Percent‚

RowPct‚

ColPct‚1‚2‚3‚Totalƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆ

1‚26‚41‚54‚121‚40.333‚40.333‚40.333‚

‚4.33‚6.83‚9.00‚‚21.49‚33.88‚44.63‚‚13.00‚20.50‚27.00‚

20.17

ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆ

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‚

ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆ

Total200200200600

33.3333.3333.33100.00StatisticsforTableofrbyc

StatisticDFValueProb

Chi-Square212.19480.0022LikelihoodRatioChi-Square212.48440.0019Mantel-HaenszelChi-Square112.15380.0005PhiCoefficient0.1426

ContingencyCoefficient0.1411

Cramer'sV0.1426

SampleSize=600

datanew;

inputxy@@;

cards;

35.51234.11631.7940.3236.8740.2331.71339.2944.2-1

proccorr;

varxy;

run;

TheSASSystem01:06Sunday,January1,20063

TheCORRProcedure

2Variables:xy

SimpleStatistics

VariableNMeanStdDevSumMaximum

x937.077784.25199333.7000044.20000

y97.777785.5852070.00000

PearsonCorrelationCoefficients,N=9Prob>|r|underH0:Rho=0

xy

x1.00000-0.83714

0.0049

y-0.837141.00000

0.0049

datanew;

infile"D:\shuju.txt";

inputx1x2y;

proccorrnosimple;

varx1x2y;

run;

TheSASSystem01:37Sunday,January1,200610

TheCORRProcedure

3Variables:x1x2yPearsonCorrelationCoefficients,N=13

Prob>|r|underH0:Rho=0

x1x2

Minimum

31.70000

-1.00000

y

16.00000

x11.00000-0.717380.62939

0.00580.0212

x2-0.717381.000000.01347

0.00580.9652

y0.629390.013471.00000

0.02120.9652

datanew;

inputxy@@;

cards;

35.51234.11631.7940.3236.8740.2331.71339.2944.2-1

procreg;

modely=x;

procglm;

modely=x;

run;

TheSASSystem01:06Sunday,January1,20066

TheGLMProcedure

DependentVariable:y

Sumof

SourceDFSquaresMeanSquareFValueModel1174.8887762174.888776216.40Error774.666779310.6666828

CorrectedTotal8249.5555556

R-SquareCoeffVarRootMSEyMean0.70080141.991283.2659897.777778

SourceDFTypeISSMeanSquareFValuex1174.8887762174.888776216.40SourceDFTypeIIISSMeanSquareFValuex1174.8887762174.888776216.40

Standard

ParameterEstimateErrortValuePr>|t|Intercept48.5493193610.127786264.790.0020x-1.099622040.27156710-4.050.0049

datanew;

inputxy@@;

l=log(y/(1-y));

m=log(1/(1-y));

g=log(1/log(1/y));

cards;

10.0004350.0049120.0087170.016240.051

300.117360.217420.415500.765560.80

procreg;

modelylmg=x;

run;

Pr>F

0.0049

Pr>F

0.0049

Pr>F

0.0049

TheSASSystem01:06Sunday,January1,20067

TheREGProcedure

Model:MODEL1

DependentVariable:y

AnalysisofVariance

SumofMean

SourceDFSquaresSquareFValuePr>FModel10.726260.7262636.020.0003Error80.161310.02016

CorrectedTotal90.88757

RootMSE0.14200R-Square0.8183

DependentMean0.23950AdjR-Sq0.7955

CoeffVar59.28848

ParameterEstimates

ParameterStandard

VariableDFEstimateErrortValuePr>|t|

Intercept1-0.173190.08213-2.110.0680

x10.015120.002526.000.0003

TheSASSystem01:06Sunday,January1,2006

8

TheREGProcedure

Model:MODEL1

DependentVariable:l

AnalysisofVariance

SumofMean

SourceDFSquaresSquareFValuePr>FModel176.1023576.10235288.19<.0001Error82.112580.26407

CorrectedTotal978.21493

RootMSE0.51388R-Square0.9730

DependentMean-2.59244AdjR-Sq0.9696

CoeffVar-19.82226

ParameterEstimates

ParameterStandard

VariableDFEstimateErrortValuePr>|t|

Intercept1-6.816960.29721-22.94<.0001

x10.154740.0091216.98<.0001

TheSASSystem01:06Sunday,January1,2006

9

TheREGProcedure

Model:MODEL1

DependentVariable:m

AnalysisofVariance

SumofMean

SourceDFSquaresSquareFValuePr>FModel12.482102.4821021.240.0017Error80.934770.11685

CorrectedTotal93.41687

RootMSE0.34183R-Square0.7264

DependentMean0.40454AdjR-Sq0.6922

CoeffVar84.49873

ParameterEstimates

ParameterStandard

VariableDFEstimateErrortValuePr

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论