mx-diagnostics: Diagnostics of Mixture Objects Fitted with 'mle2'

Description Usage Arguments Value Examples

Description

Return diagnostics after on a mixture distribution object fittted with 'mx_metafit'

Usage

1
2
3
4
diagnostics(obj, ...)

## S4 method for signature 'mxMle'
diagnostics(obj, breaks = NULL, counts = NULL, ...)

Arguments

obj

object of class mxMle

...

reserved for future extensions

breaks

class boundaries of the data

counts

frequency of observations

Value

list of diagnostic measures

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
breaks <- 0:28
counts <- c(36, 0, 2, 3, 4, 8, 9, 14, 10, 9, 3, 1, 1, 2,
            4, 8, 20, 45, 40, 54, 41, 22, 8, 3, 3, 0, 0,0)

observations <- unbin(breaks[-1], counts) # upper class boundaries

(comp <- mx_guess_components(observations, bw=2/3, mincut=0.9))
obj <- mxObj(comp, left="e")
ret <- mx_metafit(breaks, counts, obj)

summary(ret)       # general summary
cov2cor(vcov(ret)) # correlation matrix of parameters
diagnostics(ret)   # additional diagnostics

tpetzoldt/antibioticR documentation built on Sept. 25, 2021, 1:17 p.m.