glm_wrapper: Fits a generalized linear model

View source: R/inference.R

glm_wrapperR Documentation

Fits a generalized linear model

Description

Fits a generalized linear model

Usage

glm_wrapper(y, x, args = list())

Arguments

y

A vector of outcome

x

A matrix of predictors

args

A list of arguments see R 'glm' function.

Value

A list

pval

The p-value of the linear main effect.

time

elapsed time to fit the model.


mpower documentation built on Sept. 21, 2022, 9:13 a.m.