summary.ntestMeans: Summary for ntestMeans Objects

View source: R/summary.ntestMeans.R

summary.ntestMeansR Documentation

Summary for ntestMeans Objects

Description

The function summarizes the results of normality check for means.

Usage

## S3 method for class 'ntestMeans'
summary(object, ...)

Arguments

object

object of the class ntestMeans (output of the ntest.means function)

...

additional arguments passed to the function (they do not affect the summary produced)

Details

For more details about normality check and output values shortly described below, please refer to the documentation for ntest.means.

Value

An object of class "summary.ntestMeans". The object is a list with the components:

test.res

a data frame containing the chi-squared statistic and p-value for normality test

mu

mean of the expected normal distribution for means

stdev

standard deviation of the expected normal distribution for means

bins

number of categories in chi-squared normality test

df

number of degrees of freedom in chi-squared normality test

Author(s)

Jelena Kovacic jkovacic@imi.hr

References

Kovacic J, Varnai VM. Intraclass correlation coefficient for grouped data. Epidemiology 2014;25(5):769–770.

See Also

ntest.means

Examples

# Example with 6 predefined classes (grouped data)
classes <- 1:6
class.limits <- cbind(classes-0.5,classes+0.5)
r1 <- sample(classes,30,replace=TRUE)
r2 <- sample(classes,30,replace=TRUE)
nm <- ntest.means(r1,r2,predefined.classes=TRUE,classes,class.limits,bins=10)
summary(nm)

iRepro documentation built on Aug. 8, 2023, 5:13 p.m.