R/summary.obs.R

Defines functions summary.obs

Documented in summary.obs

#' Summarize results 
#' 
#' @description `summary` functions take the output and summarize it.
#' 
#' @param object an output object
#' @param ... arguments passed on to the function
#' 
#' @details Currently, observed densities (class: obs) and estimates (class: est) are supported by this function.
#'
#' @export 
summary.obs <- function(object, ...) {
  obs_density <- object
  data.frame(Variable = c("Constant", obs_density$indep_var),
             Coefficient = obs_density$coef)
}

Try the geocausal package in your browser

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

geocausal documentation built on April 3, 2025, 8:46 p.m.