Learn R Programming

matrixdist (version 1.1.2)

reg,ph-method: Regression Method for ph Class

Description

Regression Method for ph Class

Usage

# S4 method for ph
reg(
  x,
  y,
  weight = numeric(0),
  rcen = numeric(0),
  rcenweight = numeric(0),
  X = numeric(0),
  B0 = numeric(0),
  stepsEM = 1000,
  methods = c("RK", "UNI"),
  rkstep = NA,
  uni_epsilon = NA,
  optim_method = "BFGS",
  maxit = 50,
  reltol = 1e-08,
  every = 10
)

Arguments

x

an object of class '>ph.

y

vector or data.

weight

vector of weights.

rcen

vector of right-censored observations

rcenweight

vector of weights for right-censored observations.

X

model matrix (no intercept needed).

B0

initial regression coefficients (optional).

stepsEM

number of EM steps to be performed.

methods

methods to use for matrix exponential calculation: RM, UNI or PADE

rkstep

Runge-Kutta step size (optional)

uni_epsilon

epsilon parameter for uniformization method

optim_method

method to use in gradient optimization

maxit

maximum number of iterations when optimizing g function.

reltol

relative tolerance when optimizing g function.

every

number of iterations between likelihood display updates.

Value

An object of class '>sph.