Learn R Programming

matrixdist (version 1.1.9)

fit,dph-method: Fit method for dph class

Description

Fit method for dph class

Usage

# S4 method for dph
fit(x, y, weight = numeric(0), stepsEM = 1000, every = 100)

Value

An object of class dph.

Arguments

x

An object of class dph.

y

Vector or data.

weight

Vector of weights.

stepsEM

Number of EM steps to be performed.

every

Number of iterations between likelihood display updates.

Examples

Run this code
obj <- dph(structure = "general", dimension = 2)
data <- sim(obj, n = 100)
fit(obj, data, stepsEM = 100, every = 20)

Run the code above in your browser using DataLab