powered by
Fit Method for ph Class
# S4 method for ph fit( x, y, weight = numeric(0), rcen = numeric(0), rcenweight = numeric(0), stepsEM = 1000, methods = c("RK", "RK"), rkstep = NA, uni_epsilon = NA, maxit = 100, reltol = 1e-08, every = 100, plot = FALSE )
an object of class '>ph.
vector or data.
vector of weights.
vector of right-censored observations
vector of weights for right-censored observations.
number of EM steps to be performed.
methods to use for matrix exponential calculation: RM, UNI or PADE
Runge-Kutta step size (optional)
epsilon parameter for uniformization method
maximum number of iterations when optimizing g function.
relative tolerance when optimizing g function.
number of iterations between likelihood display updates.
logical indicating whether to plot the fit at each iteration.
An object of class '>ph.
# NOT RUN { obj <- iph(ph(structure = "general", dimension = 2), gfun = "weibull", gfun_pars = 2) data <- sim(obj, n = 100) fit(obj, data, stepsEM = 1000, every = 200) # }
Run the code above in your browser using DataLab