Learn R Programming

LPWC (version 0.99.2)

findC: Finding best C

Description

This function computes the best C using the timepoints and max lag in the dataset

Usage

findC(timepoints, max.lag = NULL, pi = 0.95, iter = 10)

Arguments

timepoints

a vector of timepoints used in the dataset

max.lag

a numeric value with maximum lags allowed, if null, defaults to the floor of the number of timepoints divided by 4

pi

a numeric value between 0.5 and 1 for the upper bound on the penalty

iter

a numeric value with number of penalty

Value

a vector of length (10 or indicated by iter) different C to be tested

Examples

Run this code
# NOT RUN {
findC(c(0, 5, 10, 15, 20, 25), max.lag = 1, iter = 15)


# }

Run the code above in your browser using DataLab