Displaying 20 results from an estimated 6000 matches similar to: "project test data into principal components of training dataset"
2007 Jan 30
2
R and S-Plus got the different results of principal component analysis from SAS, why?
Dear Rusers,
I have met a difficult problem on explaining the differences of principal
component analysis(PCA) between R,S-PLUS and SAS/STATA/SPSS, which wasn't
met before.
Althought they have got the same eigenvalues, their coeffiecients were
different.
First, I list my results from R,S-PLUS and SAS/STATA/SPSS, and then show
the original dataset, hoping sb. to try and explain it.
2017 Sep 15
3
Regarding Principal Component Analysis result Interpretation
Dear Sir/Madam,
I am trying to do PCA analysis with "iris" dataset and trying to interpret
the result. Dataset contains 150 obs of 5 variables
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 5.1 3.5 1.4
0.2 setosa
2 4.9 3.0 1.4
0.2 setosa
2017 Sep 15
0
Regarding Principal Component Analysis result Interpretation
First, see the example at https://isezen.github.io/PCA/
> On 15 Sep 2017, at 13:43, Shylashree U.R <shylashivashree at gmail.com> wrote:
>
> Dear Sir/Madam,
>
> I am trying to do PCA analysis with "iris" dataset and trying to interpret
> the result. Dataset contains 150 obs of 5 variables
>
> Sepal.Length Sepal.Width Petal.Length Petal.Width
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)
##
2002 Dec 09
2
Principal component analysis
Dear R users,
I'm trying to cluster 30 gene chips using principal component analysis in
package mva.prcomp. Each chip is a point with 1,000 dimensions. PCA is
probably just one of several methods to cluster the 30 chips. However, I
don't know how to run prcomp, and I don't know how to interpret it's output.
If there are 30 data points in 1,000 dimensions each, do I have to
2009 Nov 09
4
prcomp - principal components in R
Hello, not understanding the output of prcomp, I reduce the number of
components and the output continues to show cumulative 100% of the
variance explained, which can't be the case dropping from 8 components
to 3.
How do i get the output in terms of the cumulative % of the total
variance, so when i go from total solution of 8 (8 variables in the data
set), to a reduced number of
2011 Jul 29
1
Limited number of principal components in PCA
Hi all,
I am attempting to run PCA on a matrix (nrow=66, ncol=84) using 'prcomp'
(stats package). My data (referred to as 'Q' in the code below) are
separate river streamflow gaging stations (columns) and peak instantaneous
discharge (rows). I am attempting to use PCA to identify regions of that
vary together.
I am entering the following command:
2013 Jul 10
3
PCA and gglot2
Hi,
I was trying as well as looking for an answer without success (a bit strange
since it should be an easy problem) and therefore I will appreciate you
help:
My simple script is:
# Loadings data of 5 columns and 100 rows of data
data1<-read.csv("C:/?/MyPCA.csv")
pairs(data1[,1:4])
pca1 <- princomp(data1[,1:4], score=TRUE, cor=TRUE)
biplot(pca1)
The biplot present the data
2008 Dec 11
2
Principal Component Analysis - Selecting components? + right choice?
Dear R gurus,
I have some climatic data for a region of the world. They are monthly averages
1950 -2000 of precipitation (12 months), minimum temperature (12 months),
maximum temperature (12 months). I have scaled them to 2 km x 2km cells, and
I have around 75,000 cells.
I need to feed them into a statistical model as co-variates, to use them to
predict a response variable.
The climatic
2006 Feb 27
1
question about Principal Component Analysis in R?
Hi all,
I am wondering in R, suppose I did the principal component analysis on
training data set and obtain the rotation matrix, via:
> pca=prcomp(training_data, center=TRUE, scale=FALSE, retx=TRUE);
Then I want to rotate the test data set using the
> d1=scale(test_data, center=TRUE, scale=FALSE) %*% pca$rotation;
> d2=predict(pca, test_data, center=TRUE, scale=FALSE);
these two
2007 Dec 26
2
Principal Components Analysis
Hi,
I do have a file that has 500000 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, nu = 0) : 0 extent dimensions"
I appreciate if someone can help
2008 Feb 14
1
Principal component analysis PCA
Hi,
I am trying to run PCA on a set of data with dimension 115*300,000. The
columns represnt the snps and the row represent the individuals. so this is
what i did.
#load the data
code<-read.table("code.txt", sep='\t', header=F, nrows=300000)
# do PCA #
pr<-prcomp(code, retx=T, center=T)
I am getting the following error message
"Error: cannot allocate vector of
2011 May 04
1
Outlier removal by Principal Component Analysis : error message
Hi,
I am currently analysis Raman spectroscopic data with the hyperSpec package.
I consulted the documentation on this package and I found an example
work-flow dedicated to Raman spectroscopy (see the address :
http://hyperspec.r-forge.r-project.org/chondro.pdf)
I am currently trying to remove outliers thanks to PCA just as they did in
the documentation, but I get a message error I can't
2012 Feb 29
2
Principal Component Analysis
Dear R buddies,
I’m trying to run Principal Component Analysis, package
princomp: http://stat.ethz.ch/R-manual/R-patched/library/stats/html/princomp.html.
My question is: why do I get different results with pca =
princomp (x, cor = TRUE) and pca = princomp (x, cor = FALSE) even when I
standardize variables in my matrix?
Best regards,
Blaž Simčič
[[alternative HTML version deleted]]
2005 Jul 21
1
principal component analysis in affy
Hi,
I have been using the prcomp function to perform PCA on my example microarray data, (stored in metric text files) which looks like this:
1a 1b 1c 1d 1e 1f ...................................................4r 4s 4t
g1 1.2705 1.2766 ...........................................................2.0298
g2 0.1631
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
2012 May 18
1
Finding the Principal components
Dear all,
I am trying to find the PCs of a spatial data set (single
variable). I want to calculate the PCs at each Lat-Lon location.
The* 'princomp'* command gives the approximate standardized data
(i.e* pca$scores*), stranded deviation ..etc. I tried*
'pca$loadings'*also, but it giving value 1 all time.
Then I tried manually(without using* princomb*
2008 Jun 11
3
Finding Coordinate of Max/Min Value in a Data Frame
Hi,
Suppose I have the following data frame.
__BEGIN__
> library(MASS)
> data(crabs)
> crab.pca <- prcomp(crabs[,4:8],retx=TRUE)
> crab.pca$rotation
PC1 PC2 PC3 PC4 PC5
FL 0.2889810 0.3232500 -0.5071698 0.7342907 0.1248816
RW 0.1972824 0.8647159 0.4141356 -0.1483092 -0.1408623
CL 0.5993986 -0.1982263 -0.1753299 -0.1435941 -0.7416656
CW
2007 Jun 27
1
Condensed PCA Results
Hello all,
I'm currently using R to do PCA Analysis, and was wondering if anyone knew the
specific R Code that could limit the output of the PCA Analysis so that you
only get the Principal Component features as your output and none of the
extraneous words or numbers that you don't want.
If that was unclear, let me use linear regression as an example:
"lm(y~x)" is the normal
2007 Jun 05
2
biplot package
Dears,
I've been learning biplot (Gabriel, 1971) and I found the function 'biplot', inside of the package 'stats',
useful but, a bit limited.
So, I'm thinking to start a colaborative package to enhance this methods to other multivariate methods. In this
way, I would like to start it, making public a new function (biplot.pca, still in development, but running)
that make