summary.qe.mean.sd: Summary method for objects of class "qe.mean.sd"

View source: R/summary.qe.mean.sd.R

summary.qe.mean.sdR Documentation

Summary method for objects of class "qe.mean.sd"

Description

Summary method for objects of class "qe.mean.sd".

Usage

## S3 method for class 'qe.mean.sd'
summary(object, digits = 5, ...)

Arguments

object

object of class "qe.mean.sd".

digits

integer specifying the number of decimal places.

...

other arguments.

Value

A 5 x 3 matrix with columns for the estimated sample mean, estimated standard deviation, and sum of squares (of the objective function used in qe.fit) under each candidate distribution.

See Also

qe.mean.sd

Examples

## Generate S2 summary data
set.seed(1)
n <- 100
x <- stats::rlnorm(n, 2.5, 1)
quants <- stats::quantile(x, probs = c(0.25, 0.5, 0.75))
obs.mean <- mean(x)
obs.sd <- stats::sd(x)

## Estimate the sample mean and standard deviation using the BC method
res <- qe.mean.sd(q1.val = quants[1], med.val = quants[2],
    q3.val = quants[3], n = n)
summary(res)


estmeansd documentation built on May 29, 2024, 7:11 a.m.