powered by
finalfit
Using finalfit conventions, produces multiple univariable linear regression models for a set of explanatory variables against a continuous dependent.
lmuni(.data, dependent, explanatory, weights = "", ...)
A list of multivariable lm fitted model outputs. Output is of class lmlist.
lm
lmlist
Dataframe.
Character vector of length 1, name of depdendent variable (must be continuous vector).
Character vector of any length: name(s) of explanatory variables.
Character vector of length 1: name of variabe for weighting. 'Prior weights' to be used in the fitting process.
Other arguments to pass to lm.
Uses lm with finalfit modelling conventions. Output can be passed to fit2df.
fit2df
Other finalfit model wrappers: coxphmulti(), coxphuni(), crrmulti(), crruni(), glmmixed(), glmmulti_boot(), glmmulti(), glmuni(), lmmixed(), lmmulti(), svyglmmulti(), svyglmuni()
coxphmulti()
coxphuni()
crrmulti()
crruni()
glmmixed()
glmmulti_boot()
glmmulti()
glmuni()
lmmixed()
lmmulti()
svyglmmulti()
svyglmuni()
library(finalfit) library(dplyr) explanatory = c("age.factor", "sex.factor", "obstruct.factor", "perfor.factor") dependent = "nodes" colon_s %>% lmuni(dependent, explanatory) %>% fit2df()
Run the code above in your browser using DataLab