Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/gof.mhd.asymptotic.R
Performs a Mahalanobis distance type goodness of fit test on a single observation. It returns a test statistic for the observation and a corresponding p value.
1 | gof.mhd.asymptotic(observed, null.mean, null.cov, twoTailed = FALSE)
|
observed |
A vector valued numeric corresponding to the single observation over which goodness of fit is to be tested |
null.mean |
A vector valued numeric corresponding to the mean of the MVN null distribution. |
null.cov |
A matrix value corresponding to the covariance of the MVN null distribution. |
twoTailed |
A boolean indicating whether to conduct a two-tailed test on the Chi-squared distribution. |
See the working paper by Lospinoso and Snijders (2011) for more information.
list(p=p, v.obs=testStatistic.observed)
p |
p-value corresponding to the probability that, in a hypothetical long run of draws from the null distribution, we would observe evidence stronger in favor of rejection than the evidence we have currently observed. |
v.obs |
The test statistic of the observation. |
Josh Lospinoso
http://stats.ox.ac.uk/~lospinos
snopgof
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.