Learn R Programming

landpred (version 2.0)

Landmark Prediction of a Survival Outcome

Description

Nonparametric methods for landmark prediction of long-term survival outcomes, incorporating covariate and short-term event information. The package supports the construction of flexible varying-coefficient models that use discrete covariates, as well as multiple continuous covariates. The goal is to improve prediction accuracy when censored short-term events are available as predictors, using robust nonparametric procedures that do not require correct model specification and avoid restrictive parametric assumptions found in alternative methods. More information on these methods can be found in Parast et al. 2012 , Parast et al. 2011 , and Parast and Cai 2013 . A tutorial for this package is available here: .

Copy Link

Version

Install

install.packages('landpred')

Monthly Downloads

178

Version

2.0

License

GPL

Maintainer

Layla Parast

Last Published

December 15th, 2025

Functions in landpred (2.0)

coef.landpred_model_continuous

Extract Coefficients from Landpred Continuous Model
data_example_landpred

Hypothetical data to be used in examples.
predict.landpred_model_continuous

Predict Method for Landpred Continuous Model
predict.landpred_model_discrete

Predict Method for Discrete Landpred Model
Prob.Covariate

Calculate Probability with Covariate Information
coefficient_se

Calculate Standard Errors for Coefficients
cumsum2

Helper function
fit_glm_normal

Fit GLM with Normal Weights (No Short-term Event Info)
Prob.Covariate.ShortEvent

Calculate Probability with Short Event Information
VTM

Helper function, repeats a row.
mse_cv

Calculate MSE for Bandwidth Selection using Cross-Validation
get_model

Get Landpred Model
fit_short_glm

Fit GLM with Kernel Weights (Short-Term Event Info)
landpred

Create a Landpred Object
print.landpred_object

Print Method for Landpred Object
helper.si

Helper function for AUC.landmark
summary.landpred_object

Summary Method for Landpred Object
summary.landpred_model_continuous

Summary Method for Landpred Continuous Model
optimize_bandwidth

Optimize Bandwidth for Continuous Landpred Models
print.landpred_model_discrete

Print Method for Discrete Landpred Model
print.landpred_model_continuous

Print Method for Landpred Continuous Model
Kern.FUN

Calculates kernel matrix
Ghat.FUN

Estimate Survival Function
Prob.Null

Calculate Probability with No Information
AUC.landmark

Estimates the area under the ROC curve (AUC).
Wi.FUN

Computes the inverse probability of censoring weights for a specific t0 and tau
BS.landmark

Estimates the Brier score.