Learn R Programming

PatientLevelPrediction (version 3.0.0)

exportPlpResult: exportPlpResult exports an object returned by runPlp into a network study package while removing sensitive information from the object

Description

This function should be used to export a prediciton model and performance information into a network study for others to implement on new data for external validation

Usage

exportPlpResult(plpResult, modelName, packageName, gitHubLocation, n = NULL,
  includeEvaluationStatistics = T, includeThresholdSummary = T,
  includeDemographicSummary = T, includeCalibrationSummary = T,
  includePredictionDistribution = T, includeCovariateSummary = F)

Arguments

plpResult

The model to be saved into the package

modelName

The name of the model

packageName

The network study package name

gitHubLocation

The github directory

n

If not null, the minimum number of people required for a row to be included

includeEvaluationStatistics

Whether to include includeEvaluationStatistics evaluation

includeThresholdSummary

Whether to include thresholdSummary evaluation

includeDemographicSummary

Whether to include demographicSummary evaluation

includeCalibrationSummary

Whether to include calibrationSummary evaluation

includePredictionDistribution

Whether to include predictionDistribution evaluation

includeCovariateSummary

Whether to include covariateSummary evaluation

Value

The location of the saved model

Details

This is a helper function to perform external validation