older extended version of survival.twostage with more options and different maximizer.
survival.twostageCC(
margsurv,
data = parent.frame(),
method = "nr",
Nit = 60,
detail = 0,
clusters = NULL,
silent = 1,
weights = NULL,
control = list(),
theta = NULL,
theta.des = NULL,
var.link = 1,
baseline.iid = 1,
step = 0.5,
model = "clayton.oakes",
marginal.trunc = NULL,
marginal.survival = NULL,
marginal.status = NULL,
strata = NULL,
se.clusters = NULL,
numDeriv = 0,
random.design = NULL,
pairs = NULL,
dim.theta = NULL,
numDeriv.method = "simple",
additive.gamma.sum = NULL,
var.par = 1,
cr.models = NULL,
case.control = 0,
ascertained = 0,
shut.up = 0
)
Marginal model
data frame
Scoring method "nr", "nlminb", "optimize", "nlm"
Number of iterations
Detail
Cluster variable
Debug information
Weights
Optimization arguments
Starting values for variance components
design for dependence parameters, when pairs are given the indeces of the theta-design for this pair, is given in pairs as column 5
Link function for variance: exp-link.
to adjust for baseline estimation, using phreg function on same data.
Step size
model
marginal left truncation probabilities
optional vector of marginal survival probabilities
related to marginal survival probabilities
strata for fitting, see example
for clusters for se calculation with iid
to get numDeriv version of second derivative, otherwise uses sum of squared score
random effect design for additive gamma model, when pairs are given the indeces of the pairs random.design rows are given as columns 3:4
matrix with rows of indeces (two-columns) for the pairs considered in the pairwise composite score, useful for case-control sampling when marginal is known.
dimension of the theta parameter for pairs situation.
uses simple to speed up things and second derivative not so important.
for two.stage=0, this is specification of the lamtot in the models via a matrix that is multiplied onto the parameters theta (dimensions=(number random effects x number of theta parameters), when null then sums all parameters.
is 1 for the default parametrization with the variances of the random effects, var.par=0 specifies that the \(\lambda_j\)'s are used as parameters.
competing risks models for two.stage=0, should be given as a list with models for each cause
assumes case control structure for "pairs" with second column being the probands, when this options is used the twostage model is profiled out via the paired estimating equations for the survival model.
if the pair are sampled only when there is an event. This is in contrast to case.control sampling where a proband is given. This can be combined with control probands. Pair-call of twostage is needed and second column of pairs are the first jump time with an event for ascertained pairs, or time of control proband.
to make the program more silent in the context of iterative procedures for case-control
Thomas Scheike