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

View source: R/multilevel.R

quantile.disagree.simR Documentation

S3 method for class 'disagree.sim'

Description

Provides a concise quantile summary of objects created using the function ad.m.sim. The simulation functions for the average deviation of the mean (or median) 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 'disagree.sim'
quantile(x,confint,...)

Arguments

x

An object of class 'disagree.sim'.

confint

The confidence intervals to return. The values of 0.05 and 0.01 return the approximate 5 percent and 1 percent confidence intervals. Values equal to or smaller than these values are significant (p=.05, 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

ad.m.sim

Examples

#Example from Dunlap et al. (2003), Table 3.  The listed significance
#value (p=.05) for a group of size 5 with a 7-item response format is
#0.64 or less.

SIMOUT<-ad.m.sim(gsize=5, nitems=1, nresp=7, itemcors=NULL,
        type="mean", nrep=1000) 
quantile(SIMOUT, c(.05,.01))

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