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
今天遇到一个网友,他之前一直在用阿里云虚拟主机,我们知道虚拟主机绑定域名是直接在面板上绑定的。这里由于他的网站项目流量比较大,虚拟主机是不够的,而且我看他虚拟主机已经有升级过。这里要说的是,用过阿里云虚拟主机的朋友可能会比较一下价格,实际上虚拟主机价格比云服务器还贵。所以,基于成本和性能的考虑,建议他选择云服务器。毕竟他的备案都接入在阿里云。这里在选择阿里云服务器后,他就蒙圈不知道如何绑定域名。这...
今天遇到一个网友,他在一个服务器中搭建有十几个网站,但是他之前都是采集站点数据很大,但是现在他删除数据之后希望设置可能有索引的文章给予404跳转页面。虽然他程序有默认的404页面,但是达不到他引流的目的,他希望设置统一的404页面。实际上设置还是很简单的,我们找到他是Nginx还是Apache,直接在引擎配置文件中设置即可。这里有看到他采用的是宝塔面板,直接在他的Nginx中设置。这里我们找到当前...
需要提前声明的是有网友反馈到,PacificRack 商家是不支持DD安装Windows系统的,他有安装后导致服务器被封的问题。确实有一些服务商是不允许的,我们尽可能的在服务商选择可以直接安装Windows系统套餐,毕竟DD安装的Win系统在使用上实际上也不够体验好。在前面有提到夏季促销的"PacificRack夏季促销PR-M系列和多IP站群VPS主机 年付低至19美元"有提到年付12美元的洛杉...
let美人2为你推荐
国际域名国内域名和国际域名的区别独立ip空间独立IP的空间有什么好处租服务器租个服务器?哪里租?免费虚拟主机申请求免费可以申请的域名和虚拟主机深圳网站空间怎样申请免费网站空间淘宝虚拟主机淘宝买虚拟主机空间好吗?虚拟主机测评虚拟主机哪个最好备案域名网站备案分为哪几种?域名备案跟网站备案有什么不同?买域名购买域名去哪个平台比较有优势域名信息查询有哪些官网可查询 域名信息比较全?
美国域名注册 堪萨斯服务器 主机 vultr美国与日本 bluehost shopex空间 免费博客空间 网页背景图片 华为4核 个人域名 宁波服务器 流量计费 南通服务器 傲盾官网 电信虚拟主机 1美金 idc查询 如何注册阿里云邮箱 常州联通宽带 申请网站 更多