fit_glm: A wrapper function for glm()

Description Usage Arguments Value Examples

View source: R/helpers.R

Description

Given a data frame, a regression formula in string, and a model family, call glm function.

Usage

1
fit_glm(data_df, formula_str, family)

Arguments

data_df

A data frame containing the dataset for glm analysis

formula_str

A string representing a regression formula

family

The GLM family

Value

a glm fit object

Examples

1
2
3
4
## Not run: 
fit_glm(data, 'response ~ 1 + x + y', 'binomial')

## End(Not run)

rivas-lab/snpnet documentation built on Dec. 14, 2021, 3:22 a.m.