OCC: Odds of Correct Classification

View source: R/model_adequacy.R

OCCR Documentation

Odds of Correct Classification

Description

Calculate Odds of Correct Classification. The Odds of Correct Classification for group k (OCCj) is the ratio between the odds of a correct classification into group j on the basis of the posterior probability rule and the odds of correct assignment based on random assignments with the probability of assignment to group j is done with $pi_ik$, the probability estimate by the model.

Usage

OCC(sol, Y, A)

Arguments

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.

Value

A vector of reals. The Odds of Correct Classification.

Examples

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")
OCC(sol, Y = data[, 2:6], A = data[, 7:11])

trajeR documentation built on March 18, 2022, 6:12 p.m.