View source: R/model_adequacy.R
adequacy | R Documentation |
Calculate the summary of the five methods : assignment proportion, average posterior probability, confidence interval, odds of Correct Classification.
adequacy(sol, Y, A, nb = 10000, alpha = 0.98)
sol |
Trajectory's object. An object of type Trajectory. |
Y |
Matrix. A matrix containing the variables in the model. |
A |
Matrix. A matrix containing the time variable data. |
nb |
Integer. The numbers of repetitions in the bootstrap method. |
alpha |
Real. The degree of confidence of the interval. |
A table of reals. A table with 5 rows: the estimate probabilities, the two bounds of the confidence interval, the proportion of assignment, the Average Posterior Probability and the Odds of Correct Classification.
data = read.csv(system.file("extdata", "CNORM2gr.csv", package = "trajeR")) data = as.matrix(data) sol = trajeR(Y = data[, 2:6], A = data[, 7:11], degre = c(2,2), Model = "CNORM", Method = "EM") adequacy(sol, Y = data[, 2:6], A = data[, 7:11])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.