chisq.gof.y | R Documentation |
Calculates Chi-squared goodness-of-fit in forward dimension, plots fit, and returns p-value and other stuff.
Returns a data frame (goftable
) with columns for start and end of bins, observed and expected
frequencies in the bins, and the Chi-squared statistic for the bin. Also
returns the Chi-squared statistic(X2stat
), the degrees of freedom of the
test (df
), and the associated p-value (p.Chisq
).
chisq.gof.y(fit, breaks, nys = 250)
breaks |
cutpoints on forward-distance axis defining bins |
nys |
number of y-values at which to calculate function before using
|
hmltm |
fitted model, as output by |
Uses approxfun
to approximate the forward distance pdf and then uses
integrate
to integrate it within each bin.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.