R/stats.beta.p.r

Defines functions stats.beta.p

Documented in stats.beta.p

#' stats.beta.p
#'
#' Provides a list containing the center line of the graph \code{center} and the data to be used in the construction of the chart \code{statistics}.
#'@description These functions are used to compute statistics required by the beta chart.
#'@param data the observed data values.
#'@param sizes sample sizes
#'@usage stats.beta.p(data,sizes)
#'@export stats.beta.p
#'@return The function \code{stats.beta.p} returns a list with components \code{statistics} and \code{center}.
#'
#'@examples
#'data(Drapper1998data)
#'sd.beta.p(Drapper1998data)

stats.beta.p <- function(data, sizes)
{
  statistics <- as.vector(data)
  center <- mean(statistics)
  list(statistics = statistics, center = center)
}

Try the bcc package in your browser

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

bcc documentation built on April 28, 2020, 5:05 p.m.