R/chisq_compute.R

Defines functions chisq_compute

## File Name: chisq_compute.R
## File Version: 0.02

chisq_compute <- function(obs, exp)
{
    chisq <- sum( ( obs - exp)^2 / exp )
    return(chisq)
}

Try the CDM package in your browser

Any scripts or data that you put into this service are public.

CDM documentation built on Aug. 25, 2022, 5:08 p.m.