make_bins_cont: This function creates several type of bins for continuous...

View source: R/make_bins_cont.R

make_bins_contR Documentation

This function creates several type of bins for continuous data

Description

This function creates several type of bins for continuous data

Usage

make_bins_cont(
  x,
  pnull,
  qnull = NA,
  phat = function(x) -99,
  DataBased = FALSE,
  nbins = c(50, 10),
  minexpcount = 5,
  Range = c(-99999, 99999)
)

Arguments

x

data set

pnull

cdf under the null hypothesis

qnull

=NA quantile function, if available

phat

=function(x) -99 parameters for pnull

DataBased

=FALSE bins based on data, not expected counts

nbins

=c(50, 10) number of bins

minexpcount

=5 smallest expected count per bin

Range

=c(-99999, 99999) limits of possible observations, if any

Value

A list of bins and bin probabilities


Rgof documentation built on Oct. 21, 2024, 5:07 p.m.