g.test.1: Log-likelihood test of goodness of fit.

g.test.1R Documentation

Log-likelihood test of goodness of fit.

Description

For a set of observations against a set of probabilities.

Usage

g.test.1(obsx, px)

Arguments

obsx

a numeric vector of finite positive counts, with at least one non-zero value.

px

a vector of probabilities of the same length as xobs. ( sum(px) <= 1 )

The order of values in the two vectors should be the same. If any value of xp is zero and the corresponding xobs is not, g.test.1 will always reject the hypothesis. No corrections are applied. No input checks are applied.

Details

General utility function.


bartongroup/RATS documentation built on June 8, 2022, 12:40 a.m.