Description Usage Arguments Author(s)
View source: R/tune.par.vsflcm.R
tune key parameters(K,lambda,lam.nuc,lam.smo) using cross validation in vsflcm, if you don't want to tune the parameter by yourself, this is for you.
1 2 3 4 5 6 7 | tune.par.vsflcm(formula, data = NULL, id.time = NULL, id.sub = NULL,
t.min = NULL, t.max = NULL, seed.split = 4, num.fold = 3,
thre = 0.9, fpc.on = TRUE, intercept = TRUE, K = NULL,
lambdas = 10^seq(-2, 2, 1), lam.smos = c(0, 10^seq(-2, 2, 1)),
lam.nucs = c(0, 10^seq(-2, 2, 1)), K0 = 2, spline.fun = "B-spline",
method.obj = "nuclear", K.max = 10, delta = 0.1,
method.optim = "BFGS", times = 1, spline.fun2d = NULL, maxit = 200)
|
formula |
formula for the regression. should have form |
data |
data frame |
id.time |
the variable that represents time |
id.sub |
variable giving subject ID |
t.min |
minimum value to be evaluated on the time domain. if 'NULL', taken to be minium observed value. |
t.max |
maximum value to be evaluated on the time domain. if 'NULL', taken to be minium observed value. |
seed.split |
seed to randomly split the data set into training set and test set |
num.fold |
|
thre |
when automaticly chosing K, K will be chosen as the smallest one which ensures that the model can explain |
fpc.on |
Logical. Whether fpc will be used |
intercept |
logical, whether intercept is used |
K |
number of spline basis functions for coefficients and fpc. If default this function will automaticly choose K. Otherwise you need to provide a value. |
lambdas |
tuning parameter vector for |
lam.smos |
tuning parameter vector for |
lam.nucs |
tuning parameter vector for |
K0 |
number of FPCs |
spline.fun |
spline basis functions. If not default, it should be a function taking a vector(corresponding to time) belonging to [0,1] as input and returning a |
method.obj |
the methodology chosen. Should be 'nuclear' or 'nonconvex'. Typically, we recommend 'nuclear' |
K.max |
max |
delta |
Only useful when |
method.optim |
the optimization method to be used. For details and other options, please refer to |
times |
Only useful when |
spline.fun2d |
second derivative of |
maxit |
|
Hongming Pu phmhappier@163.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.