quantile.agree.sim: S3 method for class 'agree.sim'

View source: R/multilevel.R

quantile.agree.simR Documentation

S3 method for class 'agree.sim'

Description

Provides a concise quantile summary of objects created using the functions rwg.sim and rwg.j.sim. The simulation functions for rwg and rwg.j return a limited number of estimated values. Consequently, the normal quantile methods are biased. The quantile methods incorporated in this function produce unbiased estimates.

Usage

## S3 method for class 'agree.sim'
quantile(x,confint,...)

Arguments

x

An object of class 'agree.sim'.

confint

The confidence intervals to return. The values of 0.95 and 0.99 return the approximate 95th and 99th percentile confidence intervals (p=.05 and p=.01).

...

Optional arguments. None used.

Value

A dataframe with two columns. The first column contains the quantile value and the second contains the estimate based on the object.

Author(s)

Paul Bliese pdbliese@gmail.com

See Also

rwg.sim rwg.j.sim

Examples

#An example from Dunlap et al. (2003).  The estimate from Dunlap et al.
#Table 2 is 0.53
RWG.OUT<-rwg.sim(gsize=10,nresp=5,nrep=1000)
quantile(RWG.OUT, c(.95,.99))

multilevel documentation built on March 18, 2022, 5:47 p.m.