View source: R/make_bins_cont.R

make_bins_cont | R Documentation |

This function creates several type of bins for continuous data

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

`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 |

A list of bins and bin probabilities

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.