specieslet美人2
let美人2 时间:2021-01-15 阅读:(
)
Titlestata.
commvtestcorrelations—MultivariatetestsofcorrelationsDescriptionQuickstartMenuSyntaxOptionsformultiple-sampletestsOptionsforone-sampletestsRemarksandexamplesStoredresultsMethodsandformulasReferencesAlsoseeDescriptionmvtestcorrelationsperformsone-sampleandmultiple-sampletestsoncorrelations.
Thesetestsassumemultivariatenormality.
See[MV]mvtestformoremultivariatetests.
QuickstartLawley'stestthatthecorrelationsofvariablesv1,v2,v3,andv4areequalmvtestcorrelationsv1v2v3v4Jennrich'stestthatthecorrelationmatrixequalshypothesizedmatrixmymatmvtestcorrelationsv1v2v3v4,equals(mymat)Jennrich'stestforequalcorrelationswithsamplesdenedbycatvarmvtestcorrelationsv1v2v3v4v5,by(catvar)MenuStatistics>Multivariateanalysis>MANOVA,multivariateregression,andrelated>Multivariatetestofmeans,covariances,andnormality12mvtestcorrelations—MultivariatetestsofcorrelationsSyntaxMultiple-sampletestsmvtestcorrelationsvarlistifinweight,by(groupvars)multisampleoptionsOne-sampletestsmvtestcorrelationsvarlistifinweight,one-sampleoptionsmultisampleoptionsDescriptionModelby(groupvars)comparesubsampleswithsamevaluesingroupvarsmissingtreatmissingvaluesingroupvarsasordinaryvaluesby(groupvars)isrequired.
one-sampleoptionsDescriptionOptionscompoundtestthatcorrelationmatrixiscompoundsymmetric(equalcorrelations);thedefaultequals(C)testthatcorrelationmatrixequalsmatrixCbootstrap,by,jackknife,rolling,andstatsbyareallowed;see[U]11.
1.
10Prexcommands.
Weightsarenotallowedwiththebootstrapprex;see[R]bootstrap.
aweightsarenotallowedwiththejackknifeprex;see[R]jackknife.
aweightsandfweightsareallowed;see[U]11.
1.
6weight.
Optionsformultiple-sampletestsModelby(groupvars)isrequiredwiththemultiple-sampleversionofthetest.
Observationswiththesamevaluesingroupvarsformeachsample.
Observationswithmissingvaluesingroupvarsareignored,unlessthemissingoptionisspecied.
AWaldtestduetoJennrich(1970)isdisplayed.
missingspeciesthatmissingvaluesingroupvarsaretreatedlikeordinaryvalues.
Optionsforone-sampletestsOptionscompound,thedefault,teststhehypothesisthatthecorrelationmatrixofthevariablesiscompoundsymmetric,thatis,thatthecorrelationsofallvariablesinvarlistarethesame.
Lawley's(1963)chi-squaredtestisdisplayed.
equals(C)teststhehypothesisthatthecorrelationmatrixofvarlistisC.
ThematrixCshouldbek*k,symmetric,andpositivedenite.
Cisconvertedtoacorrelationmatrixifneeded.
TherowandcolumnnamesofCareimmaterial.
AWaldtestduetoJennrich(1970)isdisplayed.
mvtestcorrelations—Multivariatetestsofcorrelations3Remarksandexamplesstata.
comRemarksarepresentedunderthefollowingheadings:One-sampletestsforcorrelationmatricesAmultiple-sampletestforcorrelationmatricesOne-sampletestsforcorrelationmatricesBothone-sampleandmultiple-sampletestsofcorrelationmatricesareprovidedwiththemvtestcorrelationscommand.
Theone-sampletestsincludeLawley's(1963)testthatthecorrelationmatrixiscompoundsymmetric(thatis,allcorrelationsareequal),andtheWaldtestproposedbyJennrich(1970)thatthecorrelationmatrixequalsagivencorrelationmatrix.
Example1Thegasoline-poweredmilk-truckdatasetintroducedinexample1of[MV]mvtestmeanshaspricepermileforfuel,repair,andcapital.
Wetestifthecorrelationsbetweenthesethreevariablesareequal(thatis,thecorrelationmatrixiscompoundsymmetric)usingthecompoundoptionofmvtestcorrelations.
.
usehttps://www.
stata-press.
com/data/r16/milktruck(Milktransportationcostsfor25gasolinetrucks(JohnsonandWichern2007)).
mvtestcorrelationsfuelrepaircapital,compoundTestthatcorrelationmatrixiscompoundsymmetric(allcorrelationsequal)Lawleychi2(2)=7.
75Prob>chi2=0.
0208Werejectthenullhypothesisandconcludethatthereareprobablydifferencesinthecorrelationsofthethreecostvariables.
Example2Usingtheequals()optionofmvtestcorrelations,wetestthehypothesisthatfuelandrepaircostshaveacorrelationof0.
75,whilethecorrelationbetweencapitalandthesetwovariablesiszero.
.
matrixC=(1,0.
75,0\0.
75,1,0\0,0,1).
matrixlistCsymmetricC[3,3]c1c2c3r11r2.
751r3001.
mvtestcorrelationsfuelrepaircapital,equals(C)TestthatcorrelationmatrixequalsspecifiedpatternCJennrichchi2(3)=4.
55Prob>chi2=0.
2077Wefailtorejectthisnullhypothesis.
4mvtestcorrelations—MultivariatetestsofcorrelationsAmultiple-sampletestforcorrelationmatricesAmultiple-sampletestofequalityofcorrelationmatricesisprovidedbythemvtestcorrelationscommandwiththeby()optiondeningthemultiplesamples(groups).
Example3Psychologicaltestscoredataareintroducedinexample2of[MV]mvtestcovariances.
Wetestwhetherthecorrelationmatricesforthefourtestscoresarethesameformalesandfemales.
.
usehttps://www.
stata-press.
com/data/r16/genderpsych(FourPsychologicalTestScores,RencherandChristensen(2012)).
mvtestcorrelationsy1y2y3y4,by(gender)TestofequalityofcorrelationmatricesacrosssamplesJennrichchi2(6)=5.
01Prob>chi2=0.
5422Wefailtorejectthenullhypothesisofequalcorrelationmatricesformalesandfemales.
Storedresultsmvtestcorrelationsstoresthefollowinginr():Scalarsr(chi2)χ2statisticr(df)degreesoffreedomforχ2testr(pchi2)p-valueforχ2testMacrosr(chi2type)typeofmodelχ2testMethodsandformulasMethodsandformulasarepresentedunderthefollowingheadings:One-sampletestsforcorrelationmatricesAmultiple-sampletestforcorrelationmatricesOne-sampletestsforcorrelationmatricesLetthesampleconsistofNi.
i.
d.
observationsfromak-variatemultivariatenormaldistributionMVNk(,Σ),withsamplecorrelationmatrixR.
Totestthatacorrelationmatrixequalsagivenmatrix,R0,mvtestcorrelationscomputesaWaldtestproposedbyJennrich(1970):χ2ocf=12trace(ZZ)diagonal(Z)I+R0R101diagonal(Z)whereZ=√NR10(RR0)anddenotestheHadamardproduct.
χ2ocfisasymptoticallyχ2distributedwithk(k1)/2degreesoffreedom.
mvtestcorrelations—Multivariatetestsofcorrelations5Totestthatthecorrelationmatrixiscompoundsymmetric,thatis,totestthatallcorrelationsareequal,thelikelihood-ratiotestissomewhatcumbersome.
Lawley(1963)offersanasymptoticallyequivalenttestthatiscomputationallysimple(JohnsonandWichern2007,457–458):χ2occ=N1(1R)2ki=2i1j=1(RijR)2ukh=1(RhR)2whereR=2k(k1)ki=2i1j=1RijRh=1k1ki=1;i=hRihu=(k1)21(1R)2k(k2)(1R)2andRijdenoteselement(i,j)ofthek*kcorrelationmatrixR.
χ2occisasymptoticallyχ2distributedwith(k2)(k+1)/2degreesoffreedom.
Aitkin,Nelson,andReinfurt(1968)studythequalityofthisχ2approximationforkuptosixandvariouscorrelations,andconcludethattheapproximationisadequateforNassmallas25.
Amultiple-sampletestforcorrelationmatricesLettherebem≥2independentsampleswiththejthsamplecontainingNji.
i.
d.
observationsfromak-variatemultivariatenormaldistribution,MVNk(j,Σj),withsamplecorrelationmatrixRj,j=1,m.
LetN=mj=1Nj.
Totestfortheequalityofcorrelationmatricesacrossmindependentsamples,mvtestcorrela-tionscomputesaWaldtestproposedbyJennrich(1970):χ2mc=mj=112traceZ2jdiagonal(Zj)I+RR11diagonal(Zj)whereR=1/Nmj=1NjRj,Zj=NjR1RjR,anddenotestheHadamardproduct.
χ2mcisasymptoticallyχ2distributedwith(m1)k(k1)/2degreesoffreedom.
ReferencesAitkin,M.
A.
,W.
C.
Nelson,andK.
H.
Reinfurt.
1968.
Testsforcorrelationmatrices.
Biometrika55:327–334.
Jennrich,R.
I.
1970.
Anasymptoticχ2testfortheequalityoftwocorrelationmatrices.
JournaloftheAmericanStatisticalAssociation65:904–912.
Johnson,R.
A.
,andD.
W.
Wichern.
2007.
AppliedMultivariateStatisticalAnalysis.
6thed.
EnglewoodCliffs,NJ:PrenticeHall.
Lawley,D.
N.
1963.
Ontestingasetofcorrelationcoefcientsforequality.
AnnalsofMathematicalStatistics34:149–151.
Rencher,A.
C.
,andW.
F.
Christensen.
2012.
MethodsofMultivariateAnalysis.
3rded.
Hoboken,NJ:Wiley.
6mvtestcorrelations—MultivariatetestsofcorrelationsAlsosee[MV]canon—Canonicalcorrelations[R]correlate—Correlationsofvariables
A400互联是一家成立于2020年的商家,主要推行洛杉矶服务器采用kvm架构,线路优质,延迟低,稳定性高!全场产品对标腾讯云轻量,服务器线路有有美国洛杉矶cn2_gia、香港cn2+cmi,目前推行的vps服务器均为精心挑选的优质线路机房,A400互联推出了夏季优惠洛杉矶5折、香港7折促销活动,质量可靠,价格实惠!二:优惠码洛杉矶五折优惠码:20210620香港cn2七折优惠码:0710三、优惠方...
ZJI原名维翔主机,是原来Wordpress圈知名主机商家,成立于2011年,2018年9月更名为ZJI,提供香港、日本、美国独立服务器(自营/数据中心直营)租用及VDS、虚拟主机空间、域名注册业务。ZJI今年全新上架了台湾CN2线路服务器,本月针对香港高主频服务器和台湾CN2服务器提供7折优惠码,其他机房及产品提供8折优惠码,优惠后台湾CN2线路E5服务器月付595元起。台湾一型CPU:Inte...
易探云怎么样?易探云是国内一家云计算服务商家,致力香港服务器、国内外服务器租用及托管等互联网业务,目前主要地区为运作香港BGP、香港CN2、广东、北京、深圳等地区。易探云服务器均选择当下热门线路,比如CN2 GIA、BGP线路、CN2线路等,所有云主机支持月付,并且首月优惠,年付优惠,优惠后香港沙田云服务器/独立ip/香港CN2线路,每月仅18元,188元/年。点击进入:易探云官方网站地址1、香港...
let美人2为你推荐
美国虚拟主机美国云主机与美国虚拟主机有什么区别域名空间什么是空间 什么是域名linux主机Linux中,用户名和主机名有什么区别?域名服务域名服务器是什么?域名主机什么是域名主机台湾vps虚拟主机,VPS,服务器,其中哪个流量最大?域名备案域名需要备案吗?免备案虚拟空间免备案的虚拟主机空间,买了以后会强制备案不?重庆虚拟空间重庆那里可以租用VSP主机国外网站空间怎么样把网站空间放到国外去?
上海vps 美国独立服务器 私人服务器 国外bt 老左博客 美国仿牌空间 国内加速器 php空间推荐 hostloc 双十一秒杀 网通服务器托管 湖南idc 服务器防火墙 lamp是什么意思 域名转入 重庆服务器 好看的空间 空间排行榜 时间服务器 免费服务器 更多