R/model_frame.R

Defines functions model.frame.galamm

Documented in model.frame.galamm

#' Extract the model frame from a galamm object
#'
#' @param formula An object of type `galamm` as described in [galammObject].
#' @param ... Other arguments. Currently not used.
#'
#' @returns A data frame.
#' @export
#' @family details of model fit
model.frame.galamm <- function(formula, ...) {
  if (!is.null(formula$data)) {
    return(formula$data)
  }
  stop("formula does not contain data slot")
}

Try the galamm package in your browser

Any scripts or data that you put into this service are public.

galamm documentation built on Dec. 21, 2025, 5:07 p.m.