model.dist: Calculate survival probabilities given a survival...

View source: R/survival_functions.R

model.distR Documentation

Calculate survival probabilities given a survival distribution and its parameter values.

Description

model.dist calculates survival probabilities given a survival distribution and its parameter values.

Usage

model.dist(dist.v, d.data, dat.x = 0, t)

Arguments

dist.v

a character string specifying the name of the survival distribution.

d.data

a vector of parameter values of the survival distribution.

dat.x

a vector of covariate values that multiply the coefficients of the survival model. Default = 0 (baseline model i.e beta=0).

t

a vector of time points to calculate the survival probabilities at.

Value

A vector of survival probabilities.


DARTH-git/darthtools documentation built on April 3, 2025, 2:12 p.m.