fit,mph-method | R Documentation |
Fit method for mph Class
## S4 method for signature 'mph'
fit(
x,
y,
delta = numeric(0),
stepsEM = 1000,
equal_marginals = FALSE,
r = 1,
maxit = 100,
reltol = 1e-08
)
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. |
obj <- mph(structure = c("general", "coxian"))
data <- sim(obj, 100)
fit(x = obj, y = data, stepsEM = 20)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.