TPC_pl | R Documentation |
These are the main selection functions with fixed significance level s
and constant
.
The function TPC
implements the thresholded partial correlation (TPC) approach to selecting important
variables in linear models of Li et al. (2017).
The function TPC_pl
implements the thresholded partial correlation approach to selecting important
variables in partial linear models of Liu et al. (2018).
This function also extends the PC-simple algorithm of Bühlmann et al. (2010) to partial linear models.
TPC_pl(y, x, u = NULL, s = 0.05, constant = 1, method = "threshold", ...)
y |
response vector; |
x |
covariate matrix; |
u |
non-parametric variable, should be a vector; |
s |
|
constant |
a value that used as the tuning constant for partial
correlation test. |
method |
the method to be used; default set as method = "threshold"; "simple" is also available. |
... |
smoothing parameters and functions: |
TPC.object a TPC object, which extends the lm
object. New attributes are:
beta - the fitted coefficients
selected_index - the selected coefficients indices
#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(y,x,times,0.05,1,method="threshold")
TPC.fit$beta
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.