Description Usage Arguments Value Examples
Fit two step estimator with Legendre polynomials in first step and B-splines in the second step
1 2 3 4 5 6 7 8 9 10 11 | preresmth.Legr.Bspl(
X,
Y,
d.pre,
d.re = NULL,
lambda,
eta,
n.foi,
plot = FALSE,
alpha = 0.05
)
|
X |
the design matrix |
Y |
the response vector (centered) |
d.pre |
the number of intervals in which to divide the support of each covariate |
lambda |
the tuning parameter for fitting the group lasso estimate for the bias correction |
eta |
the tuning parameter for the group lasso projection of one set of basis functions onto those of the other covariates. |
n.foi |
the number of functions (first columns of |
x |
a sequence of values at which the final estimators should be evaluated |
K |
the order of the Legendre polynomials. E.g. |
a list with the fitted functions and pointwise confidence intervals
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.