Description Usage Arguments Details Value See Also
This function estimates the correlation between an outcome available only for a small subset of the data and a covariate. The outcome is imputed to all the data using a smoothed predictor learned thanks to a set of surrogate variables, available for all the data.
1 2 3 |
data |
the data. The first |
nn |
the number of labeled data |
outcome_name |
a character string containing the name of the column from data containing the partly missing outcome of interest |
covariate_name |
a character string containing the name of the column from data containing the covariate to be related to the outcome of interest |
surrogate_name |
a character string vector containing the name of the column(s) from data containing the surrogate variable(s) |
bw |
the bandwidth to use |
cdf_trans |
a logical flag indicating wether the smoothing should be performed on the data transformed with their cdf. Default is TRUE. See Details. |
weights |
a weighting vector of length |
adjust_covariates_name |
optional vector of names of the covariates to adjust on during imputation and smoothing.
Default is |
do_interact |
logical flag indicating whether interactins between |
Smoothing over the CDF transformed data prevents some tail estimation issues when the new data are subsequently large.
a list with the following elements:
rhat
bw the bandwith used
data_sup
W_unlabel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.