sas_stat
-
Upload
joydeep786 -
Category
Documents
-
view
222 -
download
0
Transcript of sas_stat
![Page 1: sas_stat](https://reader030.fdocuments.in/reader030/viewer/2022021115/577d240b1a28ab4e1e9b79bb/html5/thumbnails/1.jpg)
8/3/2019 sas_stat
http://slidepdf.com/reader/full/sasstat 1/4
TDistributionFunction
ContentsIndex
probt(x,df,nc)returnsthevalueofthedistributionfunctionofthetdistributionwithdfdegreesoffreedomandoptionalnon-centralityparameternc.Ifnotspecified,nc=0.ncisthevalueofthemean.Examples:
y=probt(1.96,10);z=probt(1.96,10,3);
TDistributionQuantiles
ContentsIndex
tinv(p,df,nc)returnsthepthquantile,0<p<1,ofthetdistributionwithdfdegreesoffreedomandoptionalnon-centralitync.Ifnotspecifiednc=0.ncisthevalueofthemean.Examples:
y=tinv(.95,10);z=tinv(.95,10,5);
NormalDistributionFunction
ContentsIndex
probnorm(x)returnsthevalueofthedistributionfunctionofthestandardnormaldistribution.Example:
y=probnorm(1.96);
NormalDistributionQuantiles
ContentsIndex
probit(p)returnsthepthquantile,0<p<1,ofthestandardnormaldistribution.Example:
y=probit(.975);
FDistributionFunction
ContentsIndex
probf(x,ndf,ddf,nc)returnsthevalueofthedistributionfunctionoftheFdistributionwithndfnumeratordegreesoffreedom,ddfdenominatordegreesoffreedom,andoptionalnon-centralityparameternc.Ifnotspecified,nc=0.ncisthesumofthesquaresofthemeans.Examples:
y=probf(3.57,4,12);z=probf(3.57,4,12,2);
FDistributionQuantiles
ContentsIndex
![Page 2: sas_stat](https://reader030.fdocuments.in/reader030/viewer/2022021115/577d240b1a28ab4e1e9b79bb/html5/thumbnails/2.jpg)
8/3/2019 sas_stat
http://slidepdf.com/reader/full/sasstat 2/4
finv(p,ndf,ddf,nc)returnsthepthquantile,0<p<1,oftheFdistributionwithndfnumeratordegreesoffreedom,ddfdenominatordegreesoffreedom,andoptionalncasthenon-centralityparameter.Ifnotspecified,nc=0.ncisthesumofthesquaresofthemeans.Examples:
y=finv(.95,3,12);z=finv(.95,3,12,4);
Chi-SquareQuantiles
ContentsIndex
cinv(p,df,nc)returnsthepthquantile,0<p<1,ofthechi-squaredistributionwithdegreesoffreedomdf.Iftheoptionalnon-centralityparameterncisnotspecified,nc=0.ncisthesumofthesquaresofthemeans.Examples:
y=cinv(0.95,5);z=cinv(0.95,5,3);
Chi-SquareDistributionFunction
ContentsIndex
probchi(x,df,nc)returnsthevalueofthedistributionfunctionofthechi-squaredistributionwithdfdegreesoffreedomandoptionalnon-centralityparameternc.Ifnotspecified,nc=0.ncisthesumofthesquaresofthemeans.Examples:
y=probchi(3,17);z=probchi(3,17,5);
PoissonDistributionFunction
ContentsIndex
poisson(m,n)returnsthevalueofthedistributionfunctionofthepoissondistributionwithparameterm.Example:
y=poisson(3.2,10);
ProcTtest
ContentsIndex
Procttestisusedtotestthehypothesisofequalityofmeansfortwonormalpopulationsfromwhichindependentsampleshavebeenobtained.Theteststatisticiscomputedunderthehypothesisthatthetwopopulationshaveequalvariances,andanapproximateteststatisticiscomputedundernoassumptionabouttheequalityofvariances.Typicalinvocationis
procttestdata=second;classtype;varxy;run;
THECLASSSPECIFICATIONISREQUIRED.Theclassstatementspecifiesavariable(heretype)inthedatasetwhichtakesexactlytwovalues.Thevaluesofthisclassvariabledefinethetwopopulationstobecompared.
![Page 3: sas_stat](https://reader030.fdocuments.in/reader030/viewer/2022021115/577d240b1a28ab4e1e9b79bb/html5/thumbnails/3.jpg)
8/3/2019 sas_stat
http://slidepdf.com/reader/full/sasstat 3/4
Theoptionalvarstatementrestrictscomparisonstothevariableslisted;ifnotused,allvariablesinthedataset(execpttheclassvariable)arecomparedpairwise.
RandomUniformDeviate
ContentsIndex
ranuni(seed)returnsapseudoobservationofauniformrandomvariableontheinterval(0,1).Example:
y=ranuni(0);
RandomPoissonDeviate
ContentsIndex
ranpoi(seed,m)returnsapseudoobservationofapoissonrandomvariablewithparameterm.Example:
y=ranpoi(0,3.2);
RandomNormalDeviate
ContentsIndex
rannor(seed)returnsapseudoobservationofastandardnormalrandomvariable.Example:
y=rannor(0);
StdFunction
ContentsIndex
TheStdfunctionreturnsthestandarddeviationofargumentvariableswhichhavenonmissingvalues.Thedivisorisn()-1.Examples:
sdev=Std(x,y,z);sdev=Std(ofx1-x10);sdev=Std(ofxyz);
Thefirstandlastexampleassignsdevthestandarddeviationofthevariablesx,y,andzwhichhavenonmissingvalues.Notethedifferencesinsyntax.Thelastexamplereturnsthestandarddeviationofthevariablesamongx1,...,x10whichhavenonmissingvalues.
RandomCauchyDeviate
ContentsIndex
![Page 4: sas_stat](https://reader030.fdocuments.in/reader030/viewer/2022021115/577d240b1a28ab4e1e9b79bb/html5/thumbnails/4.jpg)
8/3/2019 sas_stat
http://slidepdf.com/reader/full/sasstat 4/4
rancau(seed)returnsapseudoobservationofacauchyrandomvariable.Example:
y=rancau(0);
StopStatement
ContentsIndex
Thestopstatementendsprocessingofadatastep.Processingcontinueswiththefirstcommandfollowingthedatastep.