marginals: Extract Marginal Models

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Extract the marginal models from an object of class mdmixmod.

Usage

1
2
## S3 method for class 'mdmixmod'
marginals(x, ...)

Arguments

x

an object of class mdmixmod.

...

currently unused.

Details

marginals fits and returns the marginal models from x, that is, objects of class mixmod for each of the data sources used in the fitting of x, with the corresponding distribution.

Value

A list.

Author(s)

Daniel Dvorkin

See Also

mixmod, mdmixmod, posteriors

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
## Not run: 
data(CiData)
joint <- mdmixmod(CiData, c(2,3,2), family=c("pvii", "norm", "norm"),
    topology="chained")
marginals(joint)
# $binding
# PVII mixture model ('pvii')
# Data 'binding' of length 10244 fitted to 2 components
# Model statistics:
#      iter      llik      qval       bic    iclbic 
#    353.00 -14409.37 -20330.50 -28883.38 -40725.65 
# 
# $expression
# Normal mixture model ('mvnorm')
# Data 'expression' of size 10244-by-4 fitted to 3 components
# Model statistics:
#       iter       llik       qval        bic     iclbic 
#      42.00  -47499.54  -50052.71  -95405.40 -100511.73 
# 
# $conservation
# PVII mixture model ('pvii')
# Data 'conservation' of length 10244 fitted to 2 components
# Model statistics:
#       iter      llik      qval       bic    iclbic 
#     897.00 -14259.84 -17797.79 -28584.32 -35660.23

## End(Not run)


lcmix documentation built on May 21, 2017, 4:05 a.m.
Search within the lcmix package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.