Message-ID: <3313C6F0-209D-4DE7-9062-B19F67DC39E1@gmail.com>
Date: 2007-11-17T03:24:27Z
From: Charilaos Skiadas
Subject: save p-value in mshapiro.test(mvnormtest)
In-Reply-To: <dbc0bcda1cc75.473df7bb@gwu.edu>
On Nov 16, 2007, at 8:04 PM, Jiao Yang wrote:
> Dear all,
>
> I want to save the p-value from mshapiro.test(mvnormtest). But
> mshapiro.test(mvnormtest) gives a list with class "htest"
> containing statistic, p.value, method and data.name as a whole.
Elements of a list are accessed, among other ways, via the $ method.
So this should work (tested with the standard shapiro.test only):
mshapiro.test(mvnormtest)$p.value
> How do I save only p-value from the result?
>
> Thanks a lot!
Haris Skiadas
Department of Mathematics and Computer Science
Hanover College