hmmlt.gof.x: Goodness-of-fit in perpendicular dimension.

View source: R/gof.R

hmmlt.gof.xR Documentation

Goodness-of-fit in perpendicular dimension.

Description

Calculates goodness-of-fit in perpendicular dimension, plots fit, and returns p-value and other stuff. Returns two p-values: p.ks is the Kolmogarov-Smirnov p-value (which is based on only the largest difference between emprical and theoretical cdfs), and Cramer-von Mises p-value (which is based on all cdf values).

Usage

hmmlt.gof.x(hmltm, ks.plot = TRUE)

Arguments

hmltm

fitted model, as output by est.hmltm

ks.plot

If TRUE, does CDF-EDF plot (similar to a Q-Q plot, but using cumulative distribution function values rather than quantiles). Point corresponding to largest difference between#' empirical and theoretical cdf (on which the Kolmogarov-Smirnov test is based) is circled in red.


david-borchers/hmltm documentation built on Oct. 29, 2023, 9:07 p.m.