regfun_slos: This function compute the regulation functions via slos...

Description Usage Arguments Examples

View source: R/regfun_slos.R

Description

This function compute the regulation functions via slos penalty

Usage

1
2
3
4
regfun_slos(xfdlist, yfd, Lcholy, time_obs = seq(0, 23, len = 24), yname,
  xnames, lambda = 0.001, gamma = 0.001, maxiteration = 500,
  lambdaI = 1e+05, d = 5, K = 5, maxabs = 1e-06, verbose = TRUE,
  type = "derivatives")

Arguments

xfdlist

a list with each element being a fd object, for all the predictors

yfd

a fd object for the response

time_obs

evaluated time points

yname

reponse name

xnames

matches the xfdlist

lambda

the fscad penalty parameter

gamma

the smoothing parameter

d

the order

K

the number of inside knots

Examples

1
2
3
4
5
6
7
8
## Not run: 
yfd = fdlist[[14]]
xfdlist  = fdlist
time_obs = (eval_times = timepoints$realtime)
xnames = names(xfdlist)
res = regfun_slos(xfdlist,yfd,time_obs,yname=xnames[14],xnames)

## End(Not run)

YunlongNie/flyfuns documentation built on Oct. 15, 2020, 6:11 p.m.