fit-mph-method: Fit method for mph Class

fit,mph-methodR Documentation

Fit method for mph Class

Description

Fit method for mph Class

Usage

## S4 method for signature 'mph'
fit(
  x,
  y,
  delta = numeric(0),
  stepsEM = 1000,
  equal_marginals = FALSE,
  r = 1,
  maxit = 100,
  reltol = 1e-08
)

Arguments

x

An object of class mph.

y

Matrix of data.

delta

Matrix with right-censoring indicators (1 uncensored, 0 right censored).

stepsEM

Number of EM steps to be performed.

equal_marginals

Logical. If TRUE, all marginals are fitted to be equal.

r

Sub-sampling parameter, defaults to 1.

maxit

Maximum number of iterations when optimizing g function.

reltol

Relative tolerance when optimizing g function.

Examples

obj <- mph(structure = c("general", "coxian"))
data <- sim(obj, 100)
fit(x = obj, y = data, stepsEM = 20)

matrixdist documentation built on Aug. 8, 2023, 5:06 p.m.