LASER {LPRelevance} | R Documentation |
Generates Artificial RELevance Samples.
Description
This function generates the artificial relevance samples (LASER).These are "sharpened" z-samples manufactured by the relevance-function d_x(z)
.
Usage
LASER( X,z, X.target, m=c(4,6), nsample=length(z), lp.reg.method='lm',
coef.smooth='BIC', centering=TRUE,parallel=FALSE,...)
Arguments
X |
A |
z |
A length |
X.target |
A |
m |
An ordered pair. First number indicates how many LP-nonparametric basis to construct for each |
nsample |
Number of relevance samples to generate for each case. |
lp.reg.method |
Method for estimating the relevance function and its conditional LP-Fourier coefficients. We currently support thee options: lm (inbuilt with subset selection), glmnet, and knn. |
centering |
Whether to perform regression-adjustment to center the data, default is TRUE. |
coef.smooth |
Specifies the method to use for LP coefficient smoothing (AIC or BIC). Uses BIC by default. |
parallel |
Use parallel computing for obtaining the relevance samples, mainly used for very huge |
... |
Extra parameters to pass to other functions. Currently only supports the arguments for |
Value
A list containing the following items:
data |
The relevant samples at |
LPcoef |
Parameters of the relevance function |
Author(s)
Subhadeep Mukhopadhyay, Kaijun Wang
Maintainer: Kaijun Wang <kaijunwang.19@gmail.com>
References
Mukhopadhyay, S., and Wang, K (2021) "On The Problem of Relevance in Statistical Inference". <arXiv:2004.09588>
Examples
data(funnel)
X<-funnel$x
z<-funnel$z
z.laser.x30<-LASER(X,z,X.target=30,m=c(4,8))$data
hist(z.laser.x30,50)