createPlpReport: createPlpReport

Description Usage Arguments Details Value

View source: R/CreatePlpDocument.R

Description

Creates a word document report of the prediction

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
createPlpReport(
  plpResult = NULL,
  plpValidation = NULL,
  plpData = NULL,
  targetName = "<target population>",
  outcomeName = "<outcome>",
  targetDefinition = NULL,
  outcomeDefinition = NULL,
  outputLocation = file.path(getwd(), "plp_report.docx"),
  save = T
)

Arguments

plpResult

An object of type plpResult returned by running runPlp()

plpValidation

An object of type validatePlp returned by running externalValidatePlp()

plpData

The plpData

targetName

A string with the target description name

outcomeName

A string with the outcome description name

targetDefinition

The cohort details

outcomeDefinition

The cohort details

outputLocation

The location to write the document to

save

If false the output of the function of the function is the document rather than creating the document in outputLocation

Details

The function creates a word document containing the analysis details, data summary and prediction model results.

Value

A work document containing the selected outputs within the user's directory at location specified in outputLocation


hxia/plp-git-demo documentation built on March 19, 2021, 1:54 a.m.