View source: R/gof_test_cont.R

gof_test_cont | R Documentation |

This function performs a number of gof tests for continuous data

```
gof_test_cont(
x,
pnull,
rnull,
w = function(x) -99,
phat = function(x) -99,
TS,
TSextra = NA,
nbins = c(50, 10),
rate = 0,
Range = c(-Inf, Inf),
B = 5000,
minexpcount = 5,
ChiUsePhat = TRUE,
maxProcessors = 1,
doMethods = "all"
)
```

`x` |
data set |

`pnull` |
cdf under the null hypothesis |

`rnull` |
routine to generate data under the null hypothesis |

`w` |
(Optional) function to calculate weights, returns -99 if no weights |

`phat` |
=function(x) -99, function to estimate parameters from the data, or -99 if no parameters aare estimated |

`TS` |
user supplied function to find test statistics, if any |

`TSextra` |
=NA, list passed to TS, if desired |

`nbins` |
=c(50, 10) number of bins for chi-square tests |

`rate` |
=0 rate of Poisson if sample size is random, 0 if sample size is fixed |

`Range` |
=c(-Inf, Inf) limits of possible observations, if any, for chi-square tests |

`B` |
=5000 number of simulation runs |

`minexpcount` |
=5 minimal expected bin count required |

`ChiUsePhat` |
=TRUE, if TRUE param is estimated parameter, otherwise minimum chi square method is used. |

`maxProcessors` |
=1, number of processors to use in parallel processing. If missing single processor is used. |

`doMethods` |
Methods to include in tests |

A list with vectors of test statistics and p.values

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.