lmfit | R Documentation |
This function fits observational linear models
lmfit(wdata, dependent, independent, covariates, rnt_dependent = FALSE)
wdata |
a data frame passed to function containing necessary data for analysis |
dependent |
a single string character of the column name for the dependent or response variable |
independent |
a single string character of the column name for the independent or explanatory variable |
covariates |
a character vector that are also column names used to define variables that will be set as covariates. |
rnt_dependent |
binary TRUE or FALSE if the dependent or response variable should be rank normal transformed. |
returns a lmfit object that is a list containing (1) 'fit' a lm() object and (2) 'summary' a vector of summary statistics.
lmfit()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.