fit,mph-method {matrixdist} | R 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 |
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)
[Package matrixdist version 1.1.9 Index]