Displaying 3 results from an estimated 3 matches for "xscores".
Did you mean:
scores
2005 Apr 15
0
code for index of canor analysis
i have search the web and not find code to cal these index.so i write one.if there exists code for such index,i hope you can let me know.
this is my first R code.i send the the list and hope uesRs give me some advise for improve it or check if i make any mistake . i appriciate your suggestion .
i have check the result roughly to the SPSS's. though i do not know excatly how SPSS calculate the
2007 Oct 23
1
Compute R2 and Q2 in PLS with pls.pcr package
...ed within the validat slot are
the predictions of each observation of Y when leave-one-out cross
validation is applied.
My code is as follows:
> mypls <- mvr(Xtrain, Ytrain, method="SIMPLS", validation="CV",
ncomp=1, niter=nrow(Ytrain))
> Xhat <- mypls$training$Xscores %*% t(mypls$training$Xload)
> R2 <- 1-(sum((Xhat-Xtrain)^2)/sum(Xtrain^2))
> Q2 <- 1-(sum((Ytrain-mypls$validat$Ypred[,,1])^2)/sum(Ytrain^2)
Is this right?
Thank you
Ana
-------------------------------------------
Ana Conesa, PhD
Bioinformatics Department
Centro de Investigaci...
2007 May 13
2
Biplot
Ein eingebundener Text mit undefiniertem Zeichensatz wurde abgetrennt.
Name: nicht verf?gbar
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20070513/6557c355/attachment.pl