Skip to contents

Returns fitted means, component-specific means, posterior probabilities, or gating probabilities.

Usage

# S3 method for class 'vcmoe'
predict(object, newdata = NULL, u = NULL,
  type = c("mean", "posterior", "component", "prior"), ...)

Arguments

object

A vcmoe object.

newdata

Optional data frame.

u

Optional index values for newdata.

type

Prediction type.

...

Unused.

Value

A vector or matrix depending on type.

Details

For Gaussian fits, type = "component" returns component-specific means and type = "mean" returns the posterior-weighted fitted mean. For Binomial fits, type = "component" returns component-specific success probabilities and type = "mean" returns the marginal success probability. For Negative-Binomial fits, type = "component" returns component-specific mean counts and type = "mean" returns the marginal mean count.