After an off-list email exchange, it sounds like the pls package and Partial Least Squares are appropriate for this analysis.
Kevin Wright 2009/11/4 Joel Fürstenberg-Hägg <joel_furstenberg_h...@hotmail.com> > > 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)])) > > biplot(pcaObj) > > > > Anyone who knows how to do? > > > > Best rageds, > > > > Joel > > _________________________________________________________________ > Hitta hetaste singlarna på MSN Dejting! > http://dejting.se.msn.com/channel/index.aspx?trackingid=1002952 > [[alternative HTML version deleted]] > > > ______________________________________________ > R-help@r-project.org 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. > > [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org 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.