powered by
Fit method for mph Class
# S4 method for mph fit( x, y, delta = numeric(0), stepsEM = 1000, equal_marginals = FALSE, r = 1, maxit = 100, reltol = 1e-08 )
An object of class mph.
Matrix of data.
Matrix with right-censoring indicators (1 uncensored, 0 right censored).
Number of EM steps to be performed.
Logical. If TRUE, all marginals are fitted to be equal.
TRUE
Sub-sampling parameter, defaults to 1.
Maximum number of iterations when optimizing g function.
Relative tolerance when optimizing g function.
obj <- mph(structure = c("general", "coxian")) data <- sim(obj, 100) fit(x = obj, y = data, stepsEM = 20)
Run the code above in your browser using DataLab