Re: [R] re siduals from pcaiv

From: Mark Difford <mark_difford_at_yahoo.co.uk>
Date: Fri, 18 Jan 2008 11:14:09 -0800 (PST)

Hi Nikolaos,

>> How can I extract the residuals from a pcaiv/rda in ade4?

>From what you can remember, you can get them as follows (ade4):

## If your call to pcaiv was as follows: pcaiv(dudi$obj, df=FactorIV, scannf=F, nf=4)

## then get your residuals as follows:
ortho <- pcaivortho(dudi$obj, df=FactorIV, scannf=F, nf=4)

ortho$tab                   ## (weighted) residuals == projected variables
with df removed == residuals
print(ortho)

You would do well to post your query on the ade4list, where the authors/co-authors of the ade4 package are likely to reply.

HTH, Mark.

Nikolaos Fyllas wrote:
>
> Dear R users,
>
> How can I extract the residuals from a pcaiv/rda in ade4?
>
> In Vegan there is the
> residuals()
> function, giving the approximation of the original data from the
> unconstrained ordination
> Is there something similar in ade4?
>
> Nikos
>
> ______________________________________________
> R-help_at_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.
>
>

-- 
View this message in context: http://www.nabble.com/residuals-from-pcaiv-tp14955627p14956791.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help_at_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.
Received on Fri 18 Jan 2008 - 19:19:53 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 18 Jan 2008 - 19:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive