tests/testthat/setup-aps.R

library(datasets)
data("iris")
data <- iris[, 1:4]

model <- lm(Sepal.Length ~ Sepal.Width + Petal.Length + Petal.Width, data=data)

assign_cutoff <- function(X, cutoff){
  ret <- as.integer(X > cutoff)
  return(ret)
}
factoryofthesun/r-IVaps documentation built on Dec. 20, 2021, 7:41 a.m.