Displaying 20 results from an estimated 5000 matches similar to: "PCA in Microarrays"
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
2010 Jun 30
3
Factor Loadings in Vegan's PCA
Hi all,
I am using the vegan package to run a prcincipal components analysis
on forest structural variables (tree density, basal area, average
height, regeneration density) in R.
However, I could not find out how to extract factor loadings
(correlations of each variable with each pca axis), as is straightforwar
in princomp.
Do anyone know how to do that?
Moreover, do anyone knows
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 Jan 04
1
PCA error: svd(x, nu=0) infinite or missing values
Hi,
I am trying to do a PCA on my data but I keep getting the error message
svd(x, nu=0) infinite or missing values
>From the messages posted on the subject, I understand that the NAs in my
data might be the problem, but I thought na.omit would take care of that.
Less than 5% of my cells are missing data. However, the NAs are not
regularly distributed across my matrix: certain cases and
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:
....
2005 Mar 26
5
PCA - princomp can only be used with more units than variables
Hi all:
I am trying to do PCA on the following matrix.
N1 N2 A1 A2 B1 B2
gene_a 90 110 190 210 290 310
gene_b 190 210 390 410 590 610
gene_c 90 110 110 90 120 80
gene_d 200 100 400 90 600 200
>dataf<-read.table("matrix")
>
2004 May 10
1
environmental data as vector in PCA plots
Hi,
I want to include a vector representing the sites - environmental data
correlation in a PCA.
I currently use prcomp (no scaling) to perform the PCA, and envfit to
retrieve the coordinates of the environmental data vector. However, the
vector length is different from the one obtained in CAnoco when performing
a species - environmental biplot (scaling -2). How can I scale the vector
in order to
2006 Nov 16
1
Problems with principal components analysis PCA with prcomp
Dear friends,
I am beginning to use R software in my academic research and I'm having some
problems regarding the use of PCA.
I have a table with 24445 rows and 9 columns, and I used the function
prcomp() to do the analysis.
Working with an example?:
x<-read.table("test.txt", header=T)
row.names(x)<-x[,1]
x<-x[,-1]
require(stats)
pca<-prcomp(x, scale=T)
names(pca)
##
2004 Jul 14
2
PCA in R
Hello,
I'm attempting to run a PCA on an example data set. I ran it
just fine, but I don't know how to few the output? I listed what the
variable got stored in it, but I don't know how I can get anything else out
of it. Are there other ways to view the results?
Also, I'm confused about the last line "6 variables and 8 observations"
Aren't the rows the
2005 Jun 22
2
PCA and MDS
Dear All,
I am not familar with R. I want to use PCA (principal components
analysis) and MDS (multidimensional scaling). Can someone tell me
which R package I should use for PCA and MDS? I appreciate your help
in advance.
Ray
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
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.
2009 Jan 13
1
PCA loadings differ vastly!
hi, I have two questions:
#first (SPSS vs. R):
I just compared the output of different PCA routines in R (pca, prcomp,
princomp) with results from SPSS. the loadings of the variables differ
vastly! in SPSS the variables load constantly higher than in R.
I made sure that both progr. use the correlation matrix as basis. I
found the same problem with rotated values (varimax rotation and rtex=T
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:
2009 Feb 13
4
PCA functions
Hi All, would appreciate an answer on this if you have a moment;
Is there a function (before I try and write it !) that allows the input of a
covariance or correlation matrix to calculate PCA, rather than the actual
data as in princomp()
Regards
Glenn
[[alternative HTML version deleted]]
2008 Jun 17
4
PCA analysis
Hi,
I have a problem with making PCA plots that are readable.
I would like to set different sympols instead of the numbers of my samples or their names, that I get plotted (xlabs).
How is this possible? With points, i donĀ“t seem to get the right data plotted onto the PCA plot, as I do not quite understand from where it is taken. I dont know how to
plot the correct columns of the prcomp
2009 Oct 19
2
What is the difference between prcomp and princomp?
Some webpage has described prcomp and princomp, but I am still not
quite sure what the major difference between them is. Can they be used
interchangeably?
In help, it says
'princomp' only handles so-called R-mode PCA, that is feature
extraction of variables. If a data matrix is supplied (possibly
via a formula) it is required that there are at least as many
units as
2009 Mar 08
2
prcomp(X,center=F) ??
I do not understand, from a PCA point of view, the option center=F
of prcomp()
According to the help page, the calculation in prcomp() "is done by a
singular value decomposition of the (centered and possibly scaled) data
matrix, not by using eigen on the covariance matrix" (as it's done by
princomp()) .
"This is generally the preferred method for numerical accuracy"
2006 Mar 25
1
Suggest patch for princomp.formula and prcomp.formula
Dear all,
perhaps I am using princomp.formula and prcomp.formula in a way that
is not documented to work, but then the documentation just says:
formula: a formula with no response variable.
Thus, to avoid a lot of typing, it would be nice if one could use '.'
and '-' in the formula, e.g.
> library(DAAG)
> res <- prcomp(~ . - case - site - Pop - sex, possum)
2011 Jan 26
1
Factor rotation (e.g., oblimin, varimax) and PCA
A bit of a newbee to R and factor rotation I am trying to understand
factor rotations and their implementation in R, particularly the
GPArotation library.
I have tried to reproduce some of the examples that I have found, e.g., I
have taken the values from Jacksons example in "Oblimin Rotation",
Encyclopedia of Biostatistics