lmfit: linear model fitting

View source: R/lmfit.R

lmfitR Documentation

linear model fitting

Description

This function fits observational linear models

Usage

lmfit(wdata, dependent, independent, covariates, rnt_dependent = FALSE)

Arguments

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.

Value

returns a lmfit object that is a list containing (1) 'fit' a lm() object and (2) 'summary' a vector of summary statistics.

Examples

lmfit()

hughesevoanth/glsmr documentation built on May 14, 2023, 3:41 p.m.