GPA.test | R Documentation |
Performs a permutation significance test based on total variance explained for Generalized Procrustes Analysis. The function uses GPA
.
GPA.test(df, group, tolerance = 10^-10, nbiteration = 200, scale = TRUE,
nperm = 999, progress = TRUE)
df |
a data frame with n rows (individuals) and p columns (quantitative varaibles), in which all data frames are combined. |
group |
a vector indicating the number of variables in each group (i.e. data frame). |
tolerance |
a threshold with respect to which the algorithm stops, i.e. when the difference between the GPA loss function at step n and n+1 is less than |
nbiteration |
the maximum number of iterations until the algorithm stops. |
scale |
logical, if |
nperm |
number of permutations. |
progress |
logical indicating if the progress bar should be displayed. |
Rows of each data frame are randomly and independently permuted.
The function deals with the limitted floating point precision, which can bias calculation of p-values based on a discrete test statistic distribution.
method |
a character string indicating the name of the test. |
data.name |
a character string giving the name(s) of the data, plus additional information. |
statistic |
the value of the test statistics. |
permutations |
the number of permutations. |
p.value |
the p-value of the test. |
Maxime HERVE <maxime.herve@univ-rennes1.fr>
Wakeling IN, Raats MM and MacFie HJH (1992) A new significance test for consensus in Generalized Procrustes Analysis. Journal of Sensory Studies 7:91-96.
GPA
require(FactoMineR)
data(wine)
## Not run: GPA.test(wine[,-(1:2)],group=c(5,3,10,9,2))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.