boot_est: Get estimate and CI using a function as input

View source: R/boot_utils.R

boot_estR Documentation

Get estimate and CI using a function as input

Description

Get estimate and CI using a function as input.

Usage

boot_est(
  data,
  func,
  times = 1000,
  alpha = 0.05,
  seed = NULL,
  transf = c("identity", "exp", "expit"),
  terms = NULL,
  ...
)

Arguments

data

Dataframe of raw data.

func

Function applied to data by bootstrapping.

times

Number of bootstrap replicates. Default is 1000.

alpha

Alpha used by percentile to give interval in c(alpha, 1- alpha).

seed

Seed for random number generator. If NULL the seed itself is random.

transf

Type of conversion. Must be one of c("identity", "exp", "expit"), default is identity.

terms

Character vector used to reorder the rows using the term column. When NULL, no reordering takes place.

...

Other named arguments for func.

Details

Boostrap with a function and extra arguments as input. The function is called statistic to remain constant with boot::boot.

Value

Dataframe of estimates with confidence interval.

See Also

effect_transf


FrankLef/fciR documentation built on Nov. 12, 2023, 6:09 a.m.