Description Usage Arguments Details Value Author(s) See Also Examples
This function performs the optimisation of the number of unconstrained regression parameters in (simpler) Smooth-Rough Partition model by minimising SIC criterion and gives the change-point in regression parameters.
1 2 | sic.l(x.basis = x.basis, M.basis = M.basis, x = x, y = y,
cf0 = cf0, maxq = maxq, fixedq = F)
|
x.basis |
The b-spline basis defined for interpolated x in |
M.basis |
The monomial basis defined for constrained regression coefficient. |
x |
The design matrix used in |
y |
The response variable used in |
cf0 |
The coefficient matrix obtained by natural cubic spline interpolation of x in |
maxq |
The maximum number of unconstrained parameters if |
fixedq |
If TRUE, |
Usually only called by srp.l
.
The following components are obtained only when fixedq
is FALSE:
qhat |
The optimal number of unconstrained parameters. |
sicq |
The vector of Schwarz criterion with length |
The following components are obtained only when fixedq
is TRUE:
muhat |
The estimator of constant parameter. |
bhat |
The vector of evaluated constrained functional regression coefficient. |
ahat |
The vector of unconstrained regression coefficient estimators. |
etahat |
The vector containing both |
yhat |
The vector of estimated response variable. |
Hyeyoung Maeng, h.maeng@lse.ac.uk
1 2 3 4 5 6 7 8 9 | library(fda)
x <- matrix(rnorm(10000), ncol=100)
y <- matrix(rnorm(100), ncol=1)
p <- dim(x)[1] + 1
t <- seq(0, 1, length.out=dim(x)[1])*(dim(x)[1])
x.basis <- as.fd(splinefun(t, x[, 1], method="natural"))$basis
M.basis <- create.monomial.basis(rangeval=c(0, dim(x)[1]), nbasis=2)
result <- sic.l(x.basis=x.basis, M.basis=M.basis, x=x, y=y, cf0=ncs(x)$cf0, maxq=10)
plot(result$sicq, type="b")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.