View source: R/nonparametric.R
gpa_fit | R Documentation |
Fit GPA or WGPA to landmark data.
gpa_fit(x, B = 0, ncores = getOption("Ncpus", 1L),
weighted=FALSE, ...)
## S3 method for class 'gpa_fit'
print(x, truncate=40, ...)
x |
an EDMA data object of class 'edma_data'. |
B |
nonnegative integer, the number of bootstrap replicates. |
weighted |
logical, use |
ncores |
positive integer, the number of cores to use when bootstrapping.
Use |
truncate |
numeric, number of characters to print for the object title. |
... |
arguments passed to |
Returns only form matrix, SigmaKstar is NA
.
Peter Solymos wrote the wrapper for shapes::procGPA
.
Gower, J.C. (1975). Generalized Procrustes analysis, Psychometrika, 40, 33–50.
file <- system.file(
"extdata/crouzon/Crouzon_P0_Global_MUT.xyz",
package="EDMAinR")
x <- read_xyz(file)
x <- x[,,1:10] # 10 specimens
## nonparametric fit
fit <- gpa_fit(x, B=9)
fit
str(Meanform(fit))
str(SigmaKstar(fit))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.