PRIME {misPRIME} | R Documentation |
Partial Replacement IMputation Estimation (PRIME) for Missing Covariates
Description
partial replacement imputation estimation conducts imputation and regression simultaneously for missing covariates in additive partially linear model.
Usage
PRIME(
Y,
X,
method = c("PRIME", "PRIME-MA"),
model_structure = NULL,
intercept = FALSE,
bw = NULL,
k_type = NULL,
weight_type = c("CP", "CV"),
L = NULL
)
Arguments
Y |
a numeric vector, the response variable. |
X |
a numeric matrix that may include NAs (missing), the covariate matrix. |
method |
Users can choose |
model_structure |
only available when |
intercept |
logical. if |
bw |
a positive value, specify the bandwidth in estimating missing values, default as |
k_type |
an optional character string, specify the type of kernel used in iterative estimating algorithm and support 'epk', 'biweight', 'triangle', 'gaussian', 'triweight', 'tricube', 'cosine', 'uniform' in current version, default as 'gaussian'. |
weight_type |
Options for computing weights for |
L |
an optional positive integer, degree of the piecewise polynomial, default as '3' for cubic splines. |
Value
an object of class "prime" is a list containing at least the following components:
coef |
only available when |
beta |
only available when |
Cmat |
only available when |
weight |
only available when |
Examples
data(PRIME_SimuData)
X = PRIME_SimuData[,-1]
Y = PRIME_SimuData[,1]
model_structure <- c(rep(0,5),1,1,1)
# estimation
result <- PRIME(Y, X, method = 'PRIME', model_structure, intercept = FALSE, weight_type = 'CV')
result$coef
result$beta