MOR.ci.calc: Calculate the median odds ratio and CI using bootstrap

Description Usage Arguments

Description

Calculate the median odds ratio and CI using bootstrap (1000 replicate samples). Note: this takes a long time... So maybe plan a Titanic night with your colleagues while using this function.

Usage

1
2
MOR.ci.calc(formula = NULL, data = NULL, grp.var.t = NULL,
  cluster.var = NULL, set.subset = NULL, reps = 1000)

Arguments

formula

a character containing the formula for the glmer function

data

a (list of) data.frame(s) or data.table(s), or a MIDS object containing the data on which the model was fitted

grp.var.t

the grouping variable of interest, e.g.: "country"

cluster.var

cluster variable to use for clustered bootstrap sampling (vector)

set.subset

a logical vector, indicating whether a subject is included or not in the analysis

rep

number of bootstrap replicates should be used


bgravesteijn/bgravesteijn documentation built on Aug. 13, 2019, 6:32 p.m.