Learn R Programming

multilevel (version 2.5)

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

Description

This function 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

"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

and the second contains the estimate based on the object.

See Also

rwg.sim rwg.j.sim

Examples

Run this code
#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))

Run the code above in your browser using DataLab