R/rope_lm.R

Defines functions rope_lm

Documented in rope_lm

#' ROPE range calculation for a linear model
#'
#' Calculation of ROPE range for a linear model.
#'
#' This function calculates the ROPE range for a linear model.
#'
#' @author Shoji F. Nakayama
#'
#' @param y continuous y variable
#'
#' @examples
#' \dontrun{
#' rope.lm <- rope_lm(y)
#' }
#'
#' @export
#'
#'

rope_lm <- function(y) {
  res <- c((-0.1 * sd(y)), (0.1 * sd(y)))
  return(res)
}
fabregithub/r4jecs documentation built on June 13, 2025, 4:50 p.m.