hmmlt.gof.y | R Documentation |
Calculates goodness-of-fit in forward 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).
hmmlt.gof.y(
hmltm,
ks.plot = TRUE,
seplots = FALSE,
smult = 5,
ymax = hmmlt$fitpars$survey.pars$ymax,
breaks = NULL
)
hmltm |
fitted model, as output by |
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. |
seplots |
if TRUE does additional diagnostic plots |
smult |
multiplier to size circles in third plot. |
ymax |
forward distance at which detection probability is assumed to be zero. |
breaks |
breaks for Chi-squared goodness of fit test. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.