| logLik.sad | R Documentation |
sadCompute log likelihood and likelihood-based z-scores for objects of class sad.
## S3 method for class 'sad' logLik(x) logLikZ(x, ...) ## S3 method for class 'sad' logLikZ(x, ...)
x |
an object of class |
... |
arguments to be passed to methods |
logLikZ.sad
simulates from a fitted SAD and calculates the likelihood of these simulated data sets.
The distribution of these values is compared against the likelihood of the data to obtain
a z-score.
logLik returns an object of class logLik with attributes "df" and "nobs".
logLikZ returns a list with elements
The z-score
The observed log-likelihood of the actual data set
Andy Rominger <ajrominger@gmail.com>
fitSAD, logLik
x <- rtpois(1000, 2) sad1 <- fitSAD(x, models='tpois') logLik(sad1[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.