nb.fiml: Nonparametric Bootstrapping

Description Usage Arguments Author(s) See Also Examples

View source: R/nb.fiml.R

Description

Nonparametric Bootstrapping

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
nb.fiml(
  data,
  std = FALSE,
  B = 5000,
  par = TRUE,
  ncores = NULL,
  blas_threads = TRUE,
  mc = TRUE,
  lb = FALSE
)

Arguments

data

n by 3 matrix or data frame. data[, 1] correspond to values for x. data[, 2] correspond to values for m. data[, 3] correspond to values for y.

std

Logical. Standardize the indirect effect \hat{α}^{\prime} \hat{β}^{\prime} = \hat{α} \hat{β} \frac{\hat{σ}_x}{\hat{σ}_y}.

B

Integer. Number of bootstrap samples.

par

Logical. If TRUE, use multiple cores. If FALSE, use lapply().

ncores

Integer. Number of cores to use if par = TRUE. If unspecified, defaults to detectCores() - 1.

blas_threads

Logical. If TRUE, set BLAS threads using blas_set_num_threads(threads = blas_get_num_procs()). If FALSE, set BLAS threads using blas_set_num_threads(threads = 1). If par = TRUE, blas_threads is automatically set to FALSE to prevent conflicts in parallel processing. This argument is useful when FUN can handle implicit parallelism when par = FALSE, for example linear algebra operations.

mc

Logical. If TRUE, use parallel::mclapply(). If FALSE, use parallel::parLapply() or parallel::parLapplyLB(). Ignored if par = FALSE.

lb

Logical. If TRUE use parallel::parLapplyLB(). If FALSE, use parallel::parLapply(). Ignored if par = FALSE and mc = TRUE.

Author(s)

Ivan Jacob Agaloos Pesigan

See Also

Other nonparametric functions: beta_nb_bcaci_simulation(), beta_nb_bcaci_task(), beta_nb_bcci_simulation(), beta_nb_bcci_task(), beta_nb_pcci_simulation(), beta_nb_pcci_task(), beta_nb_simulation(), beta_nb_task(), beta_nb(), exp_nb_bcaci_simulation(), exp_nb_bcaci_task(), exp_nb_bcci_simulation(), exp_nb_bcci_task(), exp_nb_pcci_simulation(), exp_nb_pcci_task(), exp_nb_simulation(), exp_nb_task(), exp_nb(), mvn_mar_10_nb.del_bcci_simulation(), mvn_mar_10_nb.del_bcci_task(), mvn_mar_10_nb.del_pcci_simulation(), mvn_mar_10_nb.del_pcci_task(), mvn_mar_10_nb.del_simulation(), mvn_mar_10_nb.del_task(), mvn_mar_10_nb.del(), mvn_mar_10_nb.fiml_bcci_simulation(), mvn_mar_10_nb.fiml_pcci_simulation(), mvn_mar_10_nb_bcci_simulation(), mvn_mar_10_nb_bcci_task(), mvn_mar_10_nb_pcci_simulation(), mvn_mar_10_nb_pcci_task(), mvn_mar_10_nb_simulation(), mvn_mar_10_nb_task(), mvn_mar_10_nbbc.fiml_simulation(), mvn_mar_10_nbbc.fiml_task(), mvn_mar_10_nbpc.fiml_simulation(), mvn_mar_10_nbpc.fiml_task(), mvn_mar_10_nb(), mvn_mar_20_nb.del_bcci_simulation(), mvn_mar_20_nb.del_bcci_task(), mvn_mar_20_nb.del_pcci_simulation(), mvn_mar_20_nb.del_pcci_task(), mvn_mar_20_nb.del_simulation(), mvn_mar_20_nb.del_task(), mvn_mar_20_nb.del(), mvn_mar_20_nb.fiml_bcci_simulation(), mvn_mar_20_nb.fiml_pcci_simulation(), mvn_mar_20_nb_bcci_simulation(), mvn_mar_20_nb_bcci_task(), mvn_mar_20_nb_pcci_simulation(), mvn_mar_20_nb_pcci_task(), mvn_mar_20_nb_simulation(), mvn_mar_20_nb_task(), mvn_mar_20_nbbc.fiml_simulation(), mvn_mar_20_nbbc.fiml_task(), mvn_mar_20_nbpc.fiml_simulation(), mvn_mar_20_nbpc.fiml_task(), mvn_mar_20_nb(), mvn_mar_30_nb.del_bcci_simulation(), mvn_mar_30_nb.del_bcci_task(), mvn_mar_30_nb.del_pcci_simulation(), mvn_mar_30_nb.del_pcci_task(), mvn_mar_30_nb.del_simulation(), mvn_mar_30_nb.del_task(), mvn_mar_30_nb.del(), mvn_mar_30_nb.fiml_bcci_simulation(), mvn_mar_30_nb.fiml_pcci_simulation(), mvn_mar_30_nb_bcci_simulation(), mvn_mar_30_nb_bcci_task(), mvn_mar_30_nb_pcci_simulation(), mvn_mar_30_nb_pcci_task(), mvn_mar_30_nb_simulation(), mvn_mar_30_nb_task(), mvn_mar_30_nbbc.fiml_simulation(), mvn_mar_30_nbbc.fiml_task(), mvn_mar_30_nbpc.fiml_simulation(), mvn_mar_30_nbpc.fiml_task(), mvn_mar_30_nb(), mvn_mcar_10_nb.del_bcci_simulation(), mvn_mcar_10_nb.del_bcci_task(), mvn_mcar_10_nb.del_pcci_simulation(), mvn_mcar_10_nb.del_pcci_task(), mvn_mcar_10_nb.del_simulation(), mvn_mcar_10_nb.del_task(), mvn_mcar_10_nb.del(), mvn_mcar_10_nb.fiml_bcci_simulation(), mvn_mcar_10_nb.fiml_pcci_simulation(), mvn_mcar_10_nb_bcci_simulation(), mvn_mcar_10_nb_bcci_task(), mvn_mcar_10_nb_pcci_simulation(), mvn_mcar_10_nb_pcci_task(), mvn_mcar_10_nb_simulation(), mvn_mcar_10_nb_task(), mvn_mcar_10_nbbc.fiml_simulation(), mvn_mcar_10_nbbc.fiml_task(), mvn_mcar_10_nbpc.fiml_simulation(), mvn_mcar_10_nbpc.fiml_task(), mvn_mcar_10_nb(), mvn_mcar_20_nb.del_bcci_simulation(), mvn_mcar_20_nb.del_bcci_task(), mvn_mcar_20_nb.del_pcci_simulation(), mvn_mcar_20_nb.del_pcci_task(), mvn_mcar_20_nb.del_simulation(), mvn_mcar_20_nb.del_task(), mvn_mcar_20_nb.del(), mvn_mcar_20_nb.fiml_bcci_simulation(), mvn_mcar_20_nb.fiml_pcci_simulation(), mvn_mcar_20_nb_bcci_simulation(), mvn_mcar_20_nb_bcci_task(), mvn_mcar_20_nb_pcci_simulation(), mvn_mcar_20_nb_pcci_task(), mvn_mcar_20_nb_simulation(), mvn_mcar_20_nb_task(), mvn_mcar_20_nbbc.fiml_simulation(), mvn_mcar_20_nbbc.fiml_task(), mvn_mcar_20_nbpc.fiml_simulation(), mvn_mcar_20_nbpc.fiml_task(), mvn_mcar_20_nb(), mvn_mcar_30_nb.del_bcci_simulation(), mvn_mcar_30_nb.del_bcci_task(), mvn_mcar_30_nb.del_pcci_simulation(), mvn_mcar_30_nb.del_pcci_task(), mvn_mcar_30_nb.del_simulation(), mvn_mcar_30_nb.del_task(), mvn_mcar_30_nb.del(), mvn_mcar_30_nb.fiml_bcci_simulation(), mvn_mcar_30_nb.fiml_pcci_simulation(), mvn_mcar_30_nb_bcci_simulation(), mvn_mcar_30_nb_bcci_task(), mvn_mcar_30_nb_pcci_simulation(), mvn_mcar_30_nb_pcci_task(), mvn_mcar_30_nb_simulation(), mvn_mcar_30_nb_task(), mvn_mcar_30_nbbc.fiml_simulation(), mvn_mcar_30_nbbc.fiml_task(), mvn_mcar_30_nbpc.fiml_simulation(), mvn_mcar_30_nbpc.fiml_task(), mvn_mcar_30_nb(), mvn_mnar_10_nb.del_bcci_simulation(), mvn_mnar_10_nb.del_bcci_task(), mvn_mnar_10_nb.del_pcci_simulation(), mvn_mnar_10_nb.del_pcci_task(), mvn_mnar_10_nb.del_simulation(), mvn_mnar_10_nb.del_task(), mvn_mnar_10_nb.del(), mvn_mnar_10_nb.fiml_bcci_simulation(), mvn_mnar_10_nb.fiml_pcci_simulation(), mvn_mnar_10_nb_bcci_simulation(), mvn_mnar_10_nb_bcci_task(), mvn_mnar_10_nb_pcci_simulation(), mvn_mnar_10_nb_pcci_task(), mvn_mnar_10_nb_simulation(), mvn_mnar_10_nb_task(), mvn_mnar_10_nbbc.fiml_simulation(), mvn_mnar_10_nbbc.fiml_task(), mvn_mnar_10_nbpc.fiml_simulation(), mvn_mnar_10_nbpc.fiml_task(), mvn_mnar_10_nb(), mvn_mnar_20_nb.del_bcci_simulation(), mvn_mnar_20_nb.del_bcci_task(), mvn_mnar_20_nb.del_pcci_simulation(), mvn_mnar_20_nb.del_pcci_task(), mvn_mnar_20_nb.del_simulation(), mvn_mnar_20_nb.del_task(), mvn_mnar_20_nb.del(), mvn_mnar_20_nb.fiml_bcci_simulation(), mvn_mnar_20_nb.fiml_pcci_simulation(), mvn_mnar_20_nb_bcci_simulation(), mvn_mnar_20_nb_bcci_task(), mvn_mnar_20_nb_pcci_simulation(), mvn_mnar_20_nb_pcci_task(), mvn_mnar_20_nb_simulation(), mvn_mnar_20_nb_task(), mvn_mnar_20_nbbc.fiml_simulation(), mvn_mnar_20_nbbc.fiml_task(), mvn_mnar_20_nbpc.fiml_simulation(), mvn_mnar_20_nbpc.fiml_task(), mvn_mnar_20_nb(), mvn_mnar_30_nb.del_bcci_simulation(), mvn_mnar_30_nb.del_bcci_task(), mvn_mnar_30_nb.del_pcci_simulation(), mvn_mnar_30_nb.del_pcci_task(), mvn_mnar_30_nb.del_simulation(), mvn_mnar_30_nb.del_task(), mvn_mnar_30_nb.del(), mvn_mnar_30_nb.fiml_bcci_simulation(), mvn_mnar_30_nb.fiml_pcci_simulation(), mvn_mnar_30_nb_bcci_simulation(), mvn_mnar_30_nb_bcci_task(), mvn_mnar_30_nb_pcci_simulation(), mvn_mnar_30_nb_pcci_task(), mvn_mnar_30_nb_simulation(), mvn_mnar_30_nb_task(), mvn_mnar_30_nbbc.fiml_simulation(), mvn_mnar_30_nbbc.fiml_task(), mvn_mnar_30_nbpc.fiml_simulation(), mvn_mnar_30_nbpc.fiml_task(), mvn_mnar_30_nb(), mvn_nb_bcaci_simulation(), mvn_nb_bcaci_task(), mvn_nb_bcci_simulation(), mvn_nb_bcci_task(), mvn_nb_pcci_simulation(), mvn_nb_pcci_task(), mvn_nb_simulation(), mvn_nb_task(), mvn_nb(), mvn_std_nb_bcaci_simulation(), mvn_std_nb_bcaci_task(), mvn_std_nb_bcci_simulation(), mvn_std_nb_bcci_task(), mvn_std_nb_pcci_simulation(), mvn_std_nb_pcci_task(), mvn_std_nb_simulation(), mvn_std_nb_task(), mvn_std_nb(), nb.del(), nbbc.fiml(), nbpc.fiml(), nb(), vm_mod_nb_bcaci_simulation(), vm_mod_nb_bcaci_task(), vm_mod_nb_bcci_simulation(), vm_mod_nb_bcci_task(), vm_mod_nb_pcci_simulation(), vm_mod_nb_pcci_task(), vm_mod_nb_simulation(), vm_mod_nb_task(), vm_mod_nb(), vm_mod_std_nb_bcaci_simulation(), vm_mod_std_nb_bcaci_task(), vm_mod_std_nb_bcci_simulation(), vm_mod_std_nb_bcci_task(), vm_mod_std_nb_pcci_simulation(), vm_mod_std_nb_pcci_task(), vm_mod_std_nb_simulation(), vm_mod_std_nb_task(), vm_mod_std_nb(), vm_sev_nb_bcaci_simulation(), vm_sev_nb_bcaci_task(), vm_sev_nb_bcci_simulation(), vm_sev_nb_bcci_task(), vm_sev_nb_pcci_simulation(), vm_sev_nb_pcci_task(), vm_sev_nb_simulation(), vm_sev_nb_task(), vm_sev_nb(), vm_sev_std_nb_bcaci_simulation(), vm_sev_std_nb_bcaci_task(), vm_sev_std_nb_bcci_simulation(), vm_sev_std_nb_bcci_task(), vm_sev_std_nb_pcci_simulation(), vm_sev_std_nb_pcci_task(), vm_sev_std_nb_simulation(), vm_sev_std_nb_task(), vm_sev_std_nb()

Examples

1
2
3
4
5
6
7
8
9
data <- jeksterslabRdatarepo::thirst

# Unstandardized -------------------------------------------------------------
thetahatstar <- nb.fiml(data = data, B = 5000, par = FALSE)
hist(thetahatstar)

# Standardized ---------------------------------------------------------------
thetahatstar <- nb.fiml(data = data, std = TRUE, B = 5000, par = FALSE)
hist(thetahatstar)

jeksterslabds/jeksterslabRmedsimple documentation built on Oct. 16, 2020, 11:30 a.m.