powered by
This function computes the best C using the timepoints and max lag in the dataset
findC(timepoints, max.lag = NULL, pi = 0.95, iter = 10)
a vector of timepoints used in the dataset
a numeric value with maximum lags allowed, if null, defaults to the floor of the number of timepoints divided by 4
a numeric value between 0.5 and 1 for the upper bound on the penalty
a numeric value with number of penalty
a vector of length (10 or indicated by iter) different C to be tested
# NOT RUN { findC(c(0, 5, 10, 15, 20, 25), max.lag = 1, iter = 15) # }
Run the code above in your browser using DataLab