propAssign {trajeR} | R Documentation |
Assignment proportion
Description
Calculate the proportion of individuals in a given group. That is the ratio of the number of individuals in one group and all the individuals.
Usage
propAssign(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 real. The proportion.
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")
propAssign(sol, Y = data[, 2:6], A = data[, 7:11])
[Package trajeR version 0.11.1 Index]