R/parameters.R

#' Retrieves parameters from estimator
#' 
#' @param x the estimator
#' @param ... further arguments, none implemented
#' @export
#' @return List

parameters <- function(x, ...) {
  UseMethod("parameters", x)
}

#' Retrieves parameters of an object of class RhrHREstimator
#' 
#' @param x an object of class rhrHREstimator
#' @param ... further arguments, none implemented
#' @export
#' @method parameters RhrHREstimator
#' @return List

parameters.RhrHREstimator <- function(x, ...) {
  return(x$parameters)
}

Try the rhr package in your browser

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

rhr documentation built on May 2, 2019, 6:06 p.m.