| print.tvcure | R Documentation | 
tvcure.object.Print summary information on a tvcure.object generated by tvcure.
## S3 method for class 'tvcure'
print(x, ci.level=.95,expEst=TRUE,
             digits.est=3,digits.edf=2,digits.tst=2,digits.Pvalue=3,...)
x | 
 an object of class   | 
ci.level | 
 (optional) nominal level for the plotted pointwise credible intervals (default: .95).  | 
expEst | 
 (optional) logical indicating if the exponential of the regression parameter estimates should also be provided (with their confidence interval) (default: TRUE).  | 
digits.est | 
 number of digits when reporting parameter estimates (default: 3).  | 
digits.edf | 
 number of digits when reporting effective degrees of freedom (default: 2).  | 
digits.tst | 
 number of digits when reporting test statistics (default: 2).  | 
digits.Pvalue | 
 number of digits when reporting P-values (default: 3).  | 
... | 
 additional generic printing arguments.  | 
Provides summary measures on the estimation of the regression parameters and additive terms
in the tvcure model corresponding to a tvcure.object generated by tvcure.
No returned value (just printed summary).
Philippe Lambert p.lambert@uliege.be
Lambert, P. and Kreyenfeld, M. (2025). Time-varying exogenous covariates with frequently changing values in double additive cure survival model: an application to fertility. Journal of the Royal Statistical Society, Series A. <doi:10.1093/jrsssa/qnaf035>
tvcure, tvcure.object, plot.tvcure
require(tvcure)
## Simulated data generation
beta = c(beta0=.4, beta1=-.2, beta2=.15) ; gam = c(gam1=.2, gam2=.2)
data = simulateTVcureData(n=500, seed=123, beta=beta, gam=gam,
                          RC.dist="exponential",mu.cens=550)$rawdata
## TVcure model fitting
tau.0 = 2.7 ; lambda1.0 = c(40,15) ; lambda2.0 = c(25,70) ## Optional
model = tvcure(~z1+z2+s(x1)+s(x2), ~z3+z4+s(x3)+s(x4), data=data,
               tau.0=tau.0, lambda1.0=lambda1.0, lambda2.0=lambda2.0)
print(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.