summary.strata: This method formats and outputs the final results to the R...

Description Usage Arguments Value Author(s) Examples

View source: R/summary.strata.R

Description

This function defines the method for the "strata" class that has been created in the constructor function (strata.data() or strata.distr()) where all computed objects, via other relevant functions, are collated and passed as a list. The function extracts all individual objects from the "strata" class object and combines them into dataframes before writing the formatted outputs to the console. This is used for both cases, depending on either the data or a hypothetical distribution.

Usage

1
2
## S3 method for class 'strata'
summary(object, ...)

Arguments

object

A list: An object of class "strata".

...

Any data type: This argument can be any particular argument.

Value

returns the formatted output

Author(s)

Karuna Reddy <karuna.reddy@usp.ac.fj>
MGM Khan <khan_mg@usp.ac.fj>

Examples

1
2
3
4
5
6
## Not run: 
data <- rweibull(1000, shape=2, scale = 1.5)
res <- strata.data(data, h = 2, n=300)
summary(res)

## End(Not run)

stratifyR documentation built on Dec. 11, 2021, 9:25 a.m.