perturbate: Obtain the estimates for standard error via perturbation.

Description Usage Arguments Value

View source: R/perturbate.R

Description

Obtain the estimates for standard error via perturbation.

Usage

1
perturbate(M, y, seed_num, regularize = FALSE, data_pair, newcov_pair, obs_id)

Arguments

M

Number of resampling in perturbation.

y

Vector. The outcome variable.

seed_num

Number of seed to control randomness of perturbation term generated.

regularize

If the objective is to fit a regularized linear regression for variable selection, regularize = TRUE. By default, regularize = FALSE.

data_pair

Matrix. The pairwise version of original data obtained from function pair_trans()$data_pair.

newcov_pair

Matrix. The pairwise transformed covariates obtained from function pair_trans()$newcov_pair.

obs_id

Vector. The indice of missingness for subjects obtained from function pair_trans()$obs_id.

Value

A matrix. M sets of estimates based on perturbated objective function.


chenchi0526/SIsMiss documentation built on Dec. 8, 2020, 2:35 a.m.