Impute data to from the period 0 dataframe to the period 1 using "lassopmm" logic.
1 2 3 |
period_0, period_1 |
dataframes with the period 0 and period 1 data respectively. These dataframes have to contain same columns with the identical names and variable types. If this is violated, errors may appear in the process of running the function. |
dep_var |
character vector with one name of the dependent variable. |
indep_var |
character vector with the names of independent variables. |
weight_var |
character vector with one name of the weight variable. Default is 'NULL', when 'NULL' equall weights of 1 for each obesrcation are assumed. |
extra_var, group_boot_var |
character vectors. Could be |
n_near |
number of the nearest observations to derive a random match. If 'n_near' is greater than 'length(match_vector)', minimum out of two is used to create a sample for selecting a random match value. |
n_boot |
number of bootsrtapping iterations. |
force_boot |
bootstrapping permutation vector externally defined. Default
is |
n_folds |
number of folds for cross-validation |
reduced |
if TRUE terurns reduced outpur without specific regression details. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.