baseline_model: Baseline model

Description Usage Arguments Value Examples

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

Description

This model return the mean of the outcome as a prediction

Usage

1
2
3
4
5
6
7
8
baseline_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
baseline_model(
  predictors = iris[2:3],
  outcome = iris[[1]]
)

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