TopList: List of Top Units

Description Usage Arguments Value Author(s) See Also Examples

View source: R/TopList.R

Description

Returns a list of the top units ranked according to "r-value" or another specified statistic.

Usage

1
TopList(object, topnum = 10, sorted.by = c("RValue","PostMean","MLE","PVal"))

Arguments

object

An object of class "rvals"

topnum

The length of the top list.

sorted.by

The statistic by which to sort; this could be sorted.by = "RValue", sorted.by = "PostMean", sorted.by = "MLE", or sorted.by = "PVal"

Value

a data frame with topnum rows and columns containing the r-value, mle, posterior mean, and p-value rankings.

Author(s)

Nicholas Henderson and Michael Newton

See Also

rvalues

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
n <- 500
theta <- rnorm(n)
ses <- sqrt(rgamma(n,shape=1,scale=1))
XX <- theta + ses*rnorm(n)
dd <- cbind(XX,ses)

rvs <- rvalues(dd, family = gaussian)

TopList(rvs, topnum = 12)
TopList(rvs, topnum = 15, sorted.by = "MLE")

rvalues documentation built on May 29, 2017, 6:39 p.m.

Search within the rvalues package
Search all R packages, documentation and source code