generic_predict: Predict using generic function

Description Usage Arguments Examples

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

Description

Predicts using predict function and supplied model

Usage

1
2
3
4
5
6
7
generic_predict(
  model,
  predictors,
  SESOI_lower = 0,
  SESOI_upper = 0,
  na.rm = FALSE
)

Arguments

model

Model object

predictors

Data frame

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

Examples

1
2
3
4
5
6
m1 <- lm_model(
  predictors = iris[2:3],
  outcome = iris[[1]]
)

generic_predict(m1)

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