lm_model: Simple linear regression model

Description Usage Arguments Value Examples

View source: R/cv-model-fit.R

Description

This model uses all predictors to model the outcome with lm function

Usage

1
2
3
4
5
6
7
8
lm_model(
  predictors,
  outcome,
  SESOI_lower = 0,
  SESOI_upper = 0,
  na.rm = FALSE,
  ...
)

Arguments

predictors

Data frame

outcome

Vector

SESOI_lower

Lower smallest effect size of interest threshold

SESOI_upper

Upper smallest effect size of interest threshold

na.rm

Should NAs be removed? Default is FALSE

...

Extra arguments forwarded to lm function

Value

model object

Examples

1
2
3
4
lm_model(
  predictors = iris[2:3],
  outcome = iris[[1]]
)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.