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.


phuchonguyen/mpower documentation built on Oct. 2, 2022, 7:57 p.m.