internal: Functions that are currently internal to Survomatic.

Description Usage Arguments Details

Description

Various functions that are internally used by survwrapper and other front-end functions.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
weibhaz(x, a, b, c = 0, s = 0, i = 1) 
rlgst(n, a, b, s) 
rlogmake(n, a, b, c, s) 
srvhaz(x, a, b, c = 0, s = 0, i = 1) 
srvshp(x, a, b, c = 0, s = 0, i = 1, model = "g") 
cpars(x, y, xpars, ypars, model, LL, const = NULL, cx = rep(1, 
    length(x)), cy = rep(1, length(y))) 
smoother(x, s = smooth) 
modelinfo(x, what = c("comp", "rcomp", "dfcomp", "dfrcomp", "tblcomp", 
    "tblrcomp", "tblcomp2", "deps", "rdeps", "tbldeps", "tblrdeps", 
    "vars", "keep", "fullname"), extended = T) 
modpars(x, modeli, modelo = NULL, cni = rep(T, 4), cno = NULL, 
    nil = 1e-07, wbnil = 1, pf = mean, trim = F, onegrp = F) 
gmean(x) 
checkcons(cons, np, keep) 
fixpar(par, np, keep) 
objf(par, lb = 0, ub = 10, cons = rep.int(1, 4), x, y = NULL, 
    keep = 1:2, np = 2, ex = "ofg", nx, ny, cx, cy, tlog = F) 

Arguments

a

The a parameter, in literature sometimes called lambda.

b

The b parameter, in literature sometimes called gamma.

c

The c parameter (exogenous mortality).

s

The s parameter (late mortality deceleration).

i

Unit conversion factor by which the raw observations are multiplied

n

How many values to return

model

Model to use, can be 'e', 'w', 'g', 'gm', 'l', or 'lm'

cni

Vector of 1s and 0s. The 0s are parameters were constrained to be equal between the groups in the input model.

cno

Optional vector of 1s and 0s. The 0s are the parameters that should be constrained to be equal between the groups in the output model

cons

Parameters that should be held constant

const

Parameters that should be held constant

cx

Censored observations from the first group

cy

Censored observations from the second group

ex

Name of the objective function to try

extended

Whether to return extended model info

keep

Which parameters to keep

lb

Lower bound

ub

Upper bound

modeli

Model converting from

modelo

Model converting to

nil

A number with which to fill formerly variable positions that were NA in the input model but must exist in the output model.

wbnil

A weibull-specific argument that, if it exists and the model is weibull, will overwrite nil.

np

Number of parameters.

nx

Number of observations in first group

ny

Number of observations in second group

onegrp

If TRUE, then parameters from just one group. Otherwise (default) parameters from a two-group joint model.

par

A vector of model parameters

pf

Parameter function. If given a pair of parameters an unconstrained model, how to find a starting value for those parameters in a model where they are constrained to equal each other.

tlog

If true in objf, the parameters are exponentiated first.

trim

Whether to strip NAs from the modpars output.

what

What type of information is needed from modelinfo.

x

Event times from first group.

y

Event times from second group.

xpars

To be added.

ypars

To be added.

LL

To be added.

Details

Internal functions.


bokov/powertrip documentation built on May 12, 2019, 11:33 p.m.