ersity
College Station, TX 77840-4352
-Original Message-
From: r-help-boun...@r-project.org
[mailto:r-help-boun...@r-project.org] On Behalf Of Pavneet Arora
Sent: Wednesday, March 26, 2014 4:23 AM
To: John Kane
Cc: r-help@r-project.org
Subject: Re: [R] Principal Components Loadings
Hello Joh
, row.names =
c(NA,
-252L))
Hope this helps.
From: John Kane
To: Pavneet Arora/UK/RoyalSun@RoyalSun
Date: 25/03/2014 18:34
Subject:RE: [R] Principal Components Loadings
Hi Pavneet,
Your data set did not come through. The R-help list is likely to strip
any attachments othe
Hello All,
I have a dataset "bodysize.Rdata" from Journal of Statistics Education
Data Archive, which I have attached here.
I am trying to do principal components analysis on it using princomp, and
it seems to be working fine. However, I am really struggling in
interpretating the loadings of PC
1. Probably not, depending on what you expect to gain from this. R's
numerical procedures can almost certainly handle the correlations.
2. Search on "R package for principal components regression" instead
of rolling your own.There are several (e.g. "chemometrics", "pls",
etc.)
-- Bert
On Fri, No
My data has correlations between predictors so I think it would be
advantageous to rotate the axes with prcomp().
> census <-
read.table(paste("http://www.stat.wisc.edu/~rich/JWMULT02dat","T8-5.DAT",sep
="/"),header=F)
> census
V1 V2V3 V4 V5
1 5.935 14.2 2.265 2.27 2.91
2 1.523 1
On Feb 27, 2012 at 9:30pm Joyous Fisher wrote:
> Q: is there a way to do princomp or another method where every row has at
> least one missing column?
You have several options. Try function nipals in packages ade4 and plspm.
Also look at package pcaMethods (on Bioconductor), where you will find
Hello again,
> Q: is there a way to do princomp or another method where every row has at
> least one missing column?
See also package 'psych', function 'principal'. You can impute mean or
median to NAs.
Rui Barradas
--
View this message in context:
http://r.789695.n4.nabble.com/Principal-Comp
Hello,
> I could find the maximal set of columns such that there exists a subset of
> rows with non NA values for every column in the set - what is an
> efficient
> way to do that?
Try 'na.exclude' on the transpose matrix.
Example:
set.seed(1)
x <- matrix(1:200, ncol=25)
f <- function(x){x[sam
Hello,
I have a matrix with 267 columns, all rows of which have at least one
column missing (NA).
All three methods i've tried (pcs, princomp, and prcomp) fail with either
"Error in svd(zsmall) : infinite or missing values in 'x'" (latter two)
or
"Error in cov.wt(z) : 'x' must contain finite va
Hello,
I am using the function princomp and I would like to get the coefficients of
the PCA's! Would this be the rotation in the output or how can one get the
coefficients of the PCA's?
Many thanks,
Dunia
[[alternative HTML version deleted]]
_
On Fri, 2011-04-01 at 11:52 +0530, nuncio m wrote:
> HI all,
> I am trying to compute the EOF of a matrix using prcomp but unable to get
> the expansion co-efficients.
> is it possible using prcomp or are there any other methods
> thanks
> nuncio
>
*sigh*
> RSiteSearch("EOF")
It is at times li
HI all,
I am trying to compute the EOF of a matrix using prcomp but unable to get
the expansion co-efficients.
is it possible using prcomp or are there any other methods
thanks
nuncio
--
Nuncio.M
Research Scientist
National Center for Antarctic and Ocean research
Head land Sada
Vasco da Gamma
Go
Hello to everyone,
I am starting to work on classification procedures. I usualy do a principal
component analysis (PCA) as a previous step in order to reduce variables and
after I apply a cluster procedure. My question is if it will be better to
use raw variables instead of use principal componen
On Wed, 26 Dec 2007, SNN wrote:
>
> Hi,
>
> I do have a file that has 50 columns and 40 rows. I want to apply PCA on
> that data and this is what I did
>
> h1<-read.table("Ccode.txt", sep='\t', header=F) # reads the data from the
> file Ccode.txt
> h2<-prcomp(na.omit(h1),center=T)
>
> but I am
To: r-help@r-project.org
Subject: [R] Principal Components Analysis
Hi,
I do have a file that has 50 columns and 40 rows. I want to apply PCA on
that data and this is what I did
h1<-read.table("Ccode.txt", sep='\t', header=F) # reads the data from the
file Ccode.txt
Hi,
I do have a file that has 50 columns and 40 rows. I want to apply PCA on
that data and this is what I did
h1<-read.table("Ccode.txt", sep='\t', header=F) # reads the data from the
file Ccode.txt
h2<-prcomp(na.omit(h1),center=T)
but I am getting the following error
"Error in svd(x, n
16 matches
Mail list logo