TPC_pl_BIC {TPCselect} | R Documentation |
Variable Selection via Thresholded Partial Correlation
Description
Use BIC to select the best s
and constant
over grids.
Usage
TPC_pl_BIC(y, x, u = NULL, s = 0.05, constant = 1, method = "threshold", ...)
Arguments
y |
response vector; |
x |
covariate matrix; |
u |
non-parametric variable, should be a vector; |
s |
a value or a vector that used as significance level(s) for partial
correlation test. BIC will be used to select the best |
constant |
a value or a vector that used as the tuning constant for partial
correlation test. BIC will be used to select the best |
method |
the method to be used; default set as method = "threshold"; "simple" is also available. |
... |
smoothing parameters and functions: |
Value
TPC.object a TPC object, which extends the lm
object. New attributes are:
beta - the fitted coefficients
selected_index - the selected coefficients indices
Examples
#generate partial linear data
samples <- generate_toy_pldata()
y <- samples[[1]]
x <- samples[[2]]
times <- samples[[3]]
#perform variable selection via partial correlation
TPC.fit = TPC_pl_BIC(y,x,times,0.05,c(1,1.5),method="threshold")
TPC.fit$beta
[Package TPCselect version 0.8.3 Index]