Learn R Programming

intubate (version 1.0.0)

brglm: Interfaces for brglm package for data science pipelines.

Description

Interfaces to brglm functions that can be used in a pipeline implemented by magrittr.

Usage

ntbt_brglm(data, ...)

Arguments

data
data frame, tibble, list, ...
...
Other arguments passed to the corresponding interfaced function.

Value

Object returned by interfaced function.

Details

Interfaces call their corresponding interfaced function.

Examples

Run this code
## Not run: 
# library(intubate)
# library(magrittr)
# library(brglm)
# 
# ## ntbt_brglm: Bias reduction in Binomial-response GLMs
# data(lizards)
# 
# ## Original function to interface
# brglm(cbind(grahami, opalinus) ~ height + diameter +
#         light + time, family = binomial(logit), data = lizards,
#       method = "brglm.fit")
# ## The interface puts data as first parameter
# ntbt_brglm(lizards, cbind(grahami, opalinus) ~ height + diameter +
#              light + time, family = binomial(logit),
#            method = "brglm.fit")
# 
# ## so it can be used easily in a pipeline.
# lizards %>%
#   ntbt_brglm(cbind(grahami, opalinus) ~ height + diameter +
#                light + time, family = binomial(logit),
#              method = "brglm.fit")
# ## End(Not run)

Run the code above in your browser using DataLab