Learn R Programming

matrixdist (version 1.1.9)

fit,bivph-method: Fit method for bivph Class

Description

Fit method for bivph Class

Usage

# S4 method for bivph
fit(
  x,
  y,
  weight = numeric(0),
  stepsEM = 1000,
  maxit = 100,
  reltol = 1e-08,
  every = 10
)

Value

An object of class bivph.

Arguments

x

An object of class bivph.

y

A matrix with the data.

weight

Vector of weights.

stepsEM

Number of EM steps to be performed.

maxit

Maximum number of iterations when optimizing g functions.

reltol

Relative tolerance when optimizing g functions.

every

Number of iterations between likelihood display updates.

Examples

Run this code
obj <- bivph(dimensions = c(3, 3))
data <- sim(obj, n = 100)
fit(obj, data, stepsEM = 100, every = 50)

Run the code above in your browser using DataLab