lspkselect {lspartition} | R Documentation |
Tuning Parameter Selection Procedures for Partitioning-Based Regression Estimation and Inference
Description
lspkselect
implements data-driven procedures to select the Integrated Mean Squared Error (IMSE) optimal number of partitioning knots for partitioning-based least squares regression estimators. Three series methods are supported: B-splines, compactly supported wavelets, and piecewise polynomials.
See Cattaneo and Farrell (2013) and Cattaneo, Farrell and Feng (2019a) for complete details.
Companion commands: lsprobust
for partitioning-based least squares regression estimation and inference; lsprobust.plot
for plotting results; lsplincom
for multiple sample estimation and inference.
A detailed introduction to this command is given in Cattaneo, Farrell and Feng (2019b).
For more details, and related Stata and R packages useful for empirical analysis, visit https://sites.google.com/site/nppackages/.
Usage
lspkselect(y, x, m = NULL, m.bc = NULL, smooth = NULL,
bsmooth = NULL, deriv = NULL, method = "bs", ktype = "uni",
kselect = "imse-dpi", proj = TRUE, bc = "bc3", vce = "hc2",
subset = NULL, rotnorm = TRUE)
## S3 method for class 'lspkselect'
print(x, ...)
## S3 method for class 'lspkselect'
summary(object, ...)
Arguments
y |
Outcome variable. |
x |
Independent variable. A matrix or data frame. |
m |
Order of basis used in the main regression. Default is |
m.bc |
Order of basis used to estimate leading bias. Default is |
smooth |
Smoothness of B-splines for point estimation. When |
bsmooth |
Smoothness of B-splines for bias correction. Default is |
deriv |
Derivative order of the regression function to be estimated. A vector object of the same
length as |
method |
Type of basis used for expansion. Options are |
ktype |
Knot placement. Options are |
kselect |
Method for selecting the number of inner knots used by |
proj |
If |
bc |
Bias correction method. Options are |
vce |
Procedure to compute the heteroskedasticity-consistent (HCk) variance-covariance matrix estimator with plug-in residuals. Options are
|
subset |
Optional rule specifying a subset of observations to be used. |
rotnorm |
If |
... |
further arguments |
object |
class |
Value
ks |
A matrix may contain |
opt |
A list containing options passed to the function. |
Methods (by generic)
-
print
:print
method for class "lspkselect
". -
summary
:summary
method for class "lspkselect
".
Author(s)
Matias D. Cattaneo, Princeton University, Princeton, NJ. cattaneo@princeton.edu.
Max H. Farrell, University of Chicago, Chicago, IL. max.farrell@chicagobooth.edu.
Yingjie Feng (maintainer), Princeton University, Princeton, NJ. yingjief@princeton.edu.
References
Cattaneo, M. D., and M. H. Farrell (2013): Optimal convergence rates, Bahadur representation, and asymptotic normality of partitioning estimators. Journal of Econometrics 174(2): 127-143.
Cattaneo, M. D., M. H. Farrell, and Y. Feng (2019a): Large Sample Properties of Partitioning-Based Series Estimators. Annals of Statistics, forthcoming. arXiv:1804.04916.
Cattaneo, M. D., M. H. Farrell, and Y. Feng (2019b): lspartition: Partitioning-Based Least Squares Regression. R Journal, forthcoming. arXiv:1906.00202.
Cohen, A., I. Daubechies, and P.Vial (1993): Wavelets on the Interval and Fast Wavelet Transforms. Applied and Computational Harmonic Analysis 1(1): 54-81.
See Also
lsprobust
, lsprobust.plot
, lsplincom
Examples
x <- data.frame(runif(500), runif(500))
y <- sin(4*x[,1])+cos(x[,2])+rnorm(500)
est <- lspkselect(y, x)
summary(est)