pphsm.RdTranslates an accelerated failure time (AFT) model fitted by
psm to proportional hazards form, if the fitted model was
a Weibull or exponential model (extreme value distribution with
"log" link).
a new fit object with transformed parameter estimates
psm, summary.rms, print.pphsm
require(survival)
set.seed(1)
S <- Surv(runif(100))
x <- runif(100)
dd <- datadist(x); options(datadist='dd')
f <- psm(S ~ x, dist="exponential")
#> Error in Design(m, formula = formula, specials = c("strata", "cluster")): dataset dd not found for options(datadist=)
summary(f) # effects on log(T) scale
#> Error: object 'f' not found
f.ph <- pphsm(f)
#> Warning: at present, pphsm does not return the correct covariance matrix
#> Error: object 'f' not found
if (FALSE) summary(f.ph) # effects on hazard ratio scale # \dontrun{}
options(datadist=NULL)