frailty.vs is variable-selection procedures (LASSO, SCAD and HL) of fixed effects in frailty models.
frailty.vs(formula, model, penalty, data, B = NULL, v = NULL,
alpha = NULL, tun1 = NULL, tun2 = NULL, varfixed = FALSE, varinit = 0.1)
A formula object, with the response on the left of a ~ operator, and the terms for the fixed and random effects on the right. e.g. formula=Surv(time,status)~x+(1|id), time : survival time, status : censoring indicator having 1 (0) for uncensored (censored) observation, x : fixed covariate, id : random effect.
Log-normal frailty models ("lognorm")
Penalty functions ("LASSO" or "SCAD" or "HL"))
Dataframe used
Initial values of fixed effects
Initial values of random effects. Zeros are default
Initial value of variance of random effects.
Tuning parameter gamma for LASSO, SCAD and HL
Tuning parameter omega for HL
Logical value: if TRUE (FALSE), the value of one or more of the variance terms for the frailties is fixed (estimated).
Starting values for frailties, the default is 0.1.