Learn R Programming

simgof (version 1.0.2)

spreadout: spreadout

Description

This function unbins data. If qnull is given it uses quantiles, otherwise uniform

Usage

spreadout(x, case)

Arguments

x

data set

case

setup info

Value

A numeric vector of observations without ties.

Examples

Run this code
# NOT RUN {
case <- list(B=1000, param = NULL, n = 1000, pnull = function(x, param) punif(x), 
    rnull = function(n, param) runif(n), qnull = function(x, param) qunif(x), 
    est.mle = function(x) NA, nbins = 10)
y=runif(1000)
bins=seq(0, 1, length=11)
counts=hist(y, bins, plot=FALSE)$counts
x=list(bins=bins,counts=counts)
spreadout(x, case)
# }

Run the code above in your browser using DataLab