Description Usage Arguments Details Value Author(s) See Also Examples
Auxiliary function for lple
fitting.
Typically only used internally by 'lpl', but may be used to construct a control argument to either function.
1 | # lpl.control(h, kernel = 'gaussian', B, w0, p1, pctl)
|
h |
bandwidth of kernel function. The default value is h = 0.2 |
kernel |
kernel funtion types, including "gaussian", "epanechnikov", "rectangular", "triangular", "biweight", "cosine", "optcosine". The default value is 'gaussian' |
B |
number of bootstrap times. The default value is 200 |
w0 |
the estimated points in the interval of (0,1), select arbitrarily. The default value is seq(0.05, 0.95, 0.025) |
p1 |
the number of dependend variables that make interactions with the biomarker w. The default value is 1 |
pctl |
the estimated points that want to be shown in the output. The default value is seq(0.2, 0.8, 0.1) |
Control is used in model fitting of lpl.
This function checks the internal consisitency and returns a list of value as inputed to control model fit of lpl.
Siwei Zhang and Bingshu E. Chen
1 2 3 4 5 6 7 8 9 10 | ## The default control values are: h = 0.2, kernel = 'gaussian', B = 200, w0 = seq(0.05, 0.95, 0.025), p1 = 1, pctl = seq(0.2, 0.8, 0.1)
##
## To fit the lpl model with some control variables changed,
w0=seq(0.03,0.97,by=2/100)
ctl = lpl.control(w0=w0, h=0.3, p1=2, B=100)
## then fit the following model
#fit = lpl(x, y, control = ctl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.