oracle.Bspl | R Documentation |
Fit simple nonparametric regression model with cubic B-splines
oracle.Bspl(Y, X, d, plot = FALSE, x = NULL, alpha = 0.05)
Y |
a response vector (centered) |
X |
vector of covariate observations |
d |
the number functions in the cubic B-spline basis |
x |
a vector of values at which evaluations of the fitted function should be returned/plotted |
a |
logical indicating whether a plot of the fitted function should be generated |
a list containing the fitted function and a vector containing the values of the fitted function at the design points
data <- data_gen(n = 200, q = 50, r = .9)
oracle.Bspl.out <- oracle.Bspl(Y = data$Y.oracle[,1],
X = data$X[,1],
d = 10,
plot = TRUE,
x = NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.