Milton Cezar Ribeiro wrote:
> Hi there,
> 
> How can I know the explaned variance of a PC axis generated by prcomp()?

  From the standard deviations of each component, you could do something
like this maybe:

prcomp(USArrests, scale = TRUE)$sdev^2 / ncol(USArrests)

[1] 0.62006039 0.24744129 0.08914080 0.04335752

> Kind regards,
> 
> miltinho
> Brazil
> 
> __________________________________________________
> 
> 
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

-- 
Chuck Cleland, Ph.D.
NDRI, Inc.
71 West 23rd Street, 8th floor
New York, NY 10010
tel: (212) 845-4495 (Tu, Th)
tel: (732) 512-0171 (M, W, F)
fax: (917) 438-0894

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to