Learn R Programming

pssm (version 1.1.1)

pssm.noninferiority.boundary: Non inferiority boundary as a function of the prior precision

Description

Generates a function of time for specified covariate values from a "pssm" object created by pssm that fits a joint proportional hazards and survival model using a piecewise exponential underlying hazard function

Usage

pssm.noninferiority.boundary(x,time,cov1,cov2,
                                       approximate=TRUE,alpha=0.05,iterations=50000)

Arguments

x

A pssm object created by pssm

time

The time point at which the treatments are to be compared

cov1

a \(a*b\) matrix of values of the \(b\) covariates affecting the time to progession

cov2

a matrix of values of the covariates affecting survival after progression with the same number of rows as cov1

approximate

If false it uses a metropolis hasting MCMC to calculate the upper boundary otherwise it uses a normal approximation for the posterior

alpha

The one sided alpha level of the bound

iterations

Number of MCMC iterations, only used if approximate=FALSE

Value

A function is returned that takes a vector input. For each element the function outputs the lower alpha confidence bound of the survival difference

See Also

pssm-class, pssm-package, pssm.generate.data, pssm.object, pssm, pssm.simulate,

plot-methods, pssm.power