Nothing
#[export]
cat.goftests <- function(x, props, type = "gsquare", logged = FALSE) {
obs <- Rfast::colTabulate(x)
est <- props * dim(x)[1]
if (type == "chisquare" ) {
sta <- 2 * obs * log( obs / est)
} else sta <- (obs - est)^2 / est
stat <- Rfast::colsums(sta)
pvalue <- pchisq(stat, length(props) - 1, lower.tail = FALSE, log.p = logged )
cbind(stat, pvalue)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.