Displaying 20 results from an estimated 3000 matches similar to: "PCA sensitive to outliers?"
2011 Sep 01
1
Newer Matrix Factorization Techniques
Hi,
I am not sure if this should go to r-help or r-dev list. I have looked
at some archives of R libraries but cannot seem to see a project that
focuses on the new matrix factorization techniques that are showing up
in the literature. I have made a list of them:
https://sites.google.com/site/igorcarron2/matrixfactorizations
they include Robust PCA, Dictionnary Learning, Sparse PCA and are
2012 Sep 09
1
PCA legend outside of PCA plot
Hi All,
I have been trying to get to plot my PCA legend outside of the PCA plot,
but success still alludes me.
Can you guys please advise how I can achieve this. I used locater() to
obtain coordinates for below the Comp.1 axis. Using these coordinates the
legend disappears.
Below is the code for the PCA and legend.
Thanks in advance for the help.
Regards
Tinus
r.cols <-
2008 Jan 18
2
plotting other axes for PCA
Hi R-community,
I am doing a PCA and I need plots for different combinations of axes (e.g.,
PC1 vs PC3, and PC2 vs PC3) with the arrows indicating the loadings of each
variables. What I need is exactly what I get using biplot (pca.object) but
for other axes.
I have plotted PC2 and 3 using the scores of the cases, but I don't get the
arrows proportional to the loadings of each variables on
2008 Jul 03
2
PCA on image data
Dear R users,
i would like to apply a PCA on image data for data reduction.
The image data is available as three matrices for the
RGB values. At the moment i use
x <- data.frame(R,G,B)#convert image data to data frame
pca<-princomp(x,retx = TRUE)
This is working so far.
>From this results then i want to create a new matrix
from the first (second..) principal component. Here i stuck.
2008 Jul 01
2
PCA : Error in eigen(cv,
Hi all,
I am doing bootstrap on a distance matrix, in which samples have been
drawn with replacement. After that I do PCA on a resulted matrix, and
these 2 steps are repeated 1000 times.
pca(x) is a vector where I wanted to store all 1000 PCAs; and x is from
1 to 1000
SampleD is a new matrix after resampling;
I am getting the following error message, which I don't understand:
....
2008 Sep 09
4
PCA and % variance explained
After doing a PCA using princomp, how do you view how much each component
contributes to variance in the dataset. I'm still quite new to the theory of
PCA - I have a little idea about eigenvectors and eigenvalues (these
determine the variance explained?). Are the eigenvalues related to loadings
in R?
Thanks,
Paul
--
View this message in context:
2005 Jul 08
2
extract prop. of. var in pca
Dear R-helpers,
Using the package Lattice, I performed a PCA.
For example
pca.summary <- summary(pc.cr <- princomp(USArrests, cor = TRUE))
The Output of "pca.summary" looks as follows:
Importance of components:
Comp.1 Comp.2 Comp.3 Comp.4
Standard deviation 1.5748783 0.9948694 0.5971291 0.41644938
Proportion of Variance 0.6200604
2013 Jan 22
3
Ellipse in PCA with parameters "a" and "b"defined.
Hi,
I have to construct an ellipse interval region on a PCAbiplot, I have my
parameters "a" and "b" and I would apply the formula:
draw.ellipse(x, y, a = , b = )
I have done a PCA on my data so I have my scores and loading for the first
and second component, but my answer is what I have to choose as X and Y into
the formula?
if "a" and "b" are scalars or
2009 Oct 28
2
Labelling individual points on 3D PCA scatterplot
Hi There,
I'm attempting to plot 10 values on a three-dimensional PCA with text labels
next to each point. While i have no trouble doing this on 2D plots using the
'text' or 'textxy' function, I cannot find a function to do this on a 3D
plot.
I am using princomp for my PCA:
>PCA<-princomp(eucdata, cor=TRUE)
>PCA$scores [,1:3] # the three principal components i
2008 Feb 29
1
barplot and pca plot in mvpart/rpart
Hello,
I'm using the R package called mvpart, which is about the multivariate
regression trees.
The function I wrote is:
mrt1<- mvpart(coefmat~sChip+sScreen+sMem,data=mixdata, xv="pick",
plot.add=TRUE,uniform=TRUE,which=4,all=TRUE,xadj=2,yadj=2,rsq=TRUE,big.pts=TRUE,wgt.ave.pca=TRUE,legend=TRUE,bars=F,
pca=TRUE)
where "coefmat" is a matrix(of dimension N*K) to store
2009 Mar 06
3
PCA and categorical data
Hi all,
I' m trying to figure out if it is appropriate to do a PCA having only categorical data (not ordinal). I have only find the following quote:
One method to find such relationships is to select appropriate variables and
to view the data using a method like Principle Components Analysis (PCA) [4].
This approach gives us a clear picture of the data using KL-plot of the PCA.
However, the
2007 Dec 18
1
PCA - "cov.wt(z) : 'x' must contain finite values only"
I am trying to run PCA on a matrix (the first column and row are
headers). There are several cells with NA's. When I run PCA with the
following code:
______________________________________
setwd("I:/PCA")
AsianProp<-read.csv("Matrix.csv", sep=",", header=T, row.names=1)
attach(AsianProp)
AsianProp
AsianProp.pca<-princomp(AsianProp, na.omit)
2011 May 13
2
biplots for PCA
Hi all
I have produced a biplot for a PCA (see attached pdf) that I ran however the
names of the variables which are placed at the end of the arrows overlap and
are thus unreadable. Similarly some of the numbered points overlap. I was
wondering if there was a way to edit the biplot to move the label names and
if not what the best alternative is.
Thanks
Anna
pca<-biodata[,3:10]
2010 Jun 28
2
Note on PCA (not directly with R)
Dear all, I am looking for some interactive study materials on Principal
component analysis. Basically I would like to know what we are actually
doing with PCA? What is happening within the dataset at the time of doing
PCA.
Probably a 3-dimensional interactive explanation would be best for me.
I have gone through some online materials specially Wikipedia etc, however
what I need a "movable
2010 Mar 10
1
PCA
Hello,
I am trying to complete a PCA on a set of standardized ring widths from 8
different sites (T10, T9, T8, T7, T6, T5, T3, and T2).
The following is a small portion of my data:
T10 T9 T8 T7 T6 T5 T3 T2 1.33738 0.92669 0.91146 0.98922 0.9308 0.88201
0.92287 0.91775 0.82181 1.05319 0.92908 0.97971 0.95165 0.98029 1.14048
0.77803 0.88294 0.96413 0.90893 0.87957 0.9961 0.74926 0.71394 0.70877
2009 Nov 04
2
PCA with tow response variables
Hi all,
I'm new to PCA in R, so this might be a basical thing, but I cannot find anything on the net about it.
I need to make a PCA plot with two response variables (df$resp1 and df$resp2) against eight metabolites (df$met1, df$met2, ...) and I don't have a clue how to do... and I've only used the simplest PCAs before, like this:
pcaObj=prcomp(t(df[idx, c(40:47)]))
2014 Jun 30
1
How to combine/join/merge etc PCA and Cluster?
Hello everybody,
I Would like to get some help to plot together, Principal Components
Analysis (PCA) and clusters.
I am handling environmental data from 25 locations spread across 5
different ecosystems.When grouped into 5 clusters, locations from different
ecosystems are arranged in the same group.
So, I want to plot together PCA and Clusters, in a such way that locations
belonging to the same
2008 Mar 03
2
Problem with PCA
I have an exercise. With 3 kinds of yohourt a,b,c. There are 25
participatients estimate 3 norms: taste (va,vb,vc), structure (ca,cb,cc) and
price (ga,gb,gc) and give the mark from 1 to 5. I don't know how to PCA this
data. Please help me!
I attached the data file follow:
Va Vb Vc Ca Cb Cc Ga Gb Gc
4 2 4 5 5 5 4 4 2
2 2 4 3 2 5 4 5 1
2 2 1 2 3 3 3 1 4
1 1 2 2 3 3 4 3 2
3 4 4 4 3 1 2 1 2
1 1 1
2010 Apr 02
2
Biplot for PCA using labdsv package
Hi everyone,
I am doing PCA with labdsv package. I was trying to create a biplot graphs
in order to observe arrows related to my variables. However when I run the
script for this graph, the console just keep saying:
*Error in nrow(y) : element 1 is empty;
the part of the args list of 'dim' being evaluated was:
(x)*
could please someone tell me what this means? what i am doing
2011 Dec 10
3
PCA on high dimentional data
Hi:
I have a large dataset mydata, of 1000 rows and 1000 columns. The rows
have gene names and columns have condition names (cond1, cond2, cond3,
etc).
mydata<- read.table(file="c:/file1.mtx", header=TRUE, sep="")
I applied PCA as follows:
data_after_pca<- prcomp(mydata, retx=TRUE, center=TRUE, scale.=TRUE);
Now i get 1000 PCs and i choose first three PCs and make a