[R] save p-value in mshapiro.test(mvnormtest)
Charilaos Skiadas
cskiadas at gmail.com
Sat Nov 17 04:24:27 CET 2007
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
More information about the R-help
mailing list