model_reporting: Mixture Model Reporting

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

Description

See Details for a description of the individual functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## S3 method for class 'mixmod'
assignment(x, ...)
## S3 method for class 'mixmod'
design(x, ...)
## S3 method for class 'mixmod'
iter(x, ...)
## S3 method for class 'mixmod'
posterior(x, ...)
## S3 method for class 'mixmod'
stats(x, ...)

Arguments

x

an object of class mixmod or mdmixmod.

...

currently unused.

Details

These functions provide convenience reporting for objects of class mixmod or mdmixmod: assignment returns the vector of most probable component assignments; design returns the design matrix, that is, a binary matrix of which the (n,k)th element is 1 if the nth datum is assigned to component k, otherwise 0; iter returns the number of iterations used to fit the model; posterior returns the posterior probability matrix; stats returns a vector of model statistics. Note that in the case of mdmixmod objects, “components” refers here to the top-level classification, that is, Y_0.

Value

A numeric matrix, vector, or scalar.

Author(s)

Daniel Dvorkin

See Also

mixmod and mdmixmod for model details; likelihood for likelihood-specific model reporting; rocinfo for ROC curves on models.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
data(CiData)
fit <- mixmod(CiData$expression, 3)
design(fit)[1:10,]
#      [,1] [,2] [,3]
# [1,]    0    1    0
# [2,]    0    0    1
# [3,]    0    1    0
# [4,]    1    0    0
# [5,]    0    1    0
# [6,]    0    1    0
# [7,]    1    0    0
# [8,]    1    0    0
# [9,]    0    0    1
#[10,]    0    0    1

## End(Not run)

lcmix documentation built on May 2, 2019, 6:49 p.m.