spreadout: spreadout

Description Usage Arguments Value Examples

View source: R/spreadout.R

Description

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

Usage

1
spreadout(x, case)

Arguments

x

data set

case

setup info

Value

A numeric vector of observations without ties.

Examples

1
2
3
4
5
6
7
8
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)

simgof documentation built on Jan. 27, 2021, 9:07 a.m.

Related to spreadout in simgof...