Learn R Programming

trajeR (version 0.9.0.5)

ConfIntT: Confidence interval

Description

Calculate the confidence interval of the probabilities with bootstrap method. We have to specify the number of the repetitions of bootstrap and the degree of confidence.

Usage

ConfIntT(sol, Y, A, nb = 10000, alpha = 0.98)

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.

nb

An integer. The number of repetitions in the bootstrap method.

alpha

A number. The degree of confidence of the interval.

Value

A vector of reals. The two bounds of the confidence interval given a degree of confidence.

Examples

Run this code
# NOT RUN {
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")
ConfIntT(sol, Y = data[, 2:6], A = data[, 7:11])
# }

Run the code above in your browser using DataLab