save p-value in mshapiro.test(mvnormtest)
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