ca.procrustes.poly {lakhesis} | R Documentation |
Projection onto Reference Curve
Description
Performs a polynomial regression on the row reference scores and orthogonally projects data points on to the reference curve. Sampling can be increased to refine ranking and avoid ties, but default is largely sufficient. Correspondence analysis is performed using the ca
package (Nenadic and Greenacre 2007).
Usage
ca.procrustes.poly(obj, resolution = 10000)
Arguments
obj |
An incidence matrix of size n x k. |
resolution |
Number of samples to use for plotting points along polynomial curve (default is 10000). |
Value
A list of the following:.
'ref“ The Procrustes-fit coordinates of the scores of the reference seriation.
-
x
The Procrustes-fit coordinates of the row scores of the data. -
x.dat
A data frame containing the following information related to the fit of the row score after Procrustes fitting:index
, the row name,match
, the reference point nearest to the row score, anddist
, the Euclidean distance between the row score and reference score point. -
y
The Procrustes-fit coordinates of the column scores of the data. -
y.dat
A data frame containing the same information asx.dat
, but with respect to the column scores.
References
Nenadic O, Greenacre MJ (2007). “Correspondence Analysis in R, with Two- and Three-dimensional Graphics: The ca Package.” Journal of Statistical Software, 20, 1–13. doi:10.18637/jss.v020.i03.
Examples
data("quattrofontanili")
ca.procrustes.poly(quattrofontanili)