| TreatmentPatternsResults | R Documentation | 
Houses the results of a TreatmentPatterns analysis. Each field corresponds
to a file. Plotting methods are provided.
attrition(data.frame)
metadata(data.frame)
treatment_pathways(data.frame)
summary_event_duration(data.frame)
counts_age(data.frame)
counts_sex(data.frame)
counts_year(data.frame)
cdm_source_info(data.frame)
analyses(data.frame)
arguments(list)
new()Initializer method
TreatmentPatternsResults$new( attrition = NULL, metadata = NULL, treatmentPathways = NULL, summaryEventDuration = NULL, countsAge = NULL, countsSex = NULL, countsYear = NULL, cdmSourceInfo = NULL, analyses = NULL, arguments = NULL, filePath = NULL )
attrition(data.frame) attrition result.
metadata(data.frame)) metadata result.
treatmentPathways(data.frame)) treatmentPathways result.
summaryEventDuration(data.frame)) summaryEventDuration result.
countsAge(data.frame)) countsAge result.
countsSex(data.frame)) countsSex result.
countsYear(data.frame)) countsYear result.
cdmSourceInfo(data.frame) cdmSourceInfo result.
analyses(data.frame) Analyses result.
arguments(list) Named list of arguments used.
filePath(character) File path to either a directory or zip-file, containing the csv-files.
saveAsZip()Save the results as a zip-file.
TreatmentPatternsResults$saveAsZip(path, name, verbose = TRUE)
path(character(1)) Path to write to.
name(character(1)) File name.
verbose(logical: TRUE) Verbose messaging.
self
saveAsCsv()Save the results as csv-files.
TreatmentPatternsResults$saveAsCsv(path, verbose = TRUE)
path(character(1)) Path to write to.
verbose(logical: TRUE) Verbose messaging.
self
uploadResultsToDb()Upload results to a resultsDatabase using ResultModelManager.
TreatmentPatternsResults$uploadResultsToDb( connectionDetails, schema, prefix = "tp_", overwrite = TRUE, purgeSiteDataBeforeUploading = FALSE )
connectionDetails(ConnectionDetails) ConnectionDetails object from DatabaseConnector.
schema(character(1)) Schema to write tables to.
prefix(character(1): "tp_") Table prefix.
overwrite(logical(1): TRUE) Should tables be overwritten?
purgeSiteDataBeforeUploading(logical: FALSE) Should site data be purged before uploading?
self
load()Load data from files.
TreatmentPatternsResults$load(filePath)
filePath(character(1)) Path to a directory or zip-file containing the result csv-files.
self
plotSunburst()Wrapper for TreatmentPatterns::createSunburstPlot(), but with data filtering step.
TreatmentPatternsResults$plotSunburst( age = "all", sex = "all", indexYear = "all", nonePaths = FALSE, ... )
age(character(1)) Age group.
sex(character(1)) Sex group.
indexYear(character(1)) Index year group.
nonePaths(logical(1)) Should None paths be included?
...Parameters for TreatmentPatterns::createSunburstPlot()
htmlwidget
plotSankey()Wrapper for TreatmentPatterns::createSankeyDiagram(), but with data filtering step.
TreatmentPatternsResults$plotSankey( age = "all", sex = "all", indexYear = "all", nonePaths = FALSE, ... )
age(character(1)) Age group.
sex(character(1)) Sex group.
indexYear(character(1)) Index year group.
nonePaths(logical(1)) Should None paths be included?
...Parameters for TreatmentPatterns::createSankeyDiagram()
htmlwidget
plotEventDuration()Wrapper for TreatmentPatterns::plotEventDuration().
TreatmentPatternsResults$plotEventDuration(...)
...Parameters for TreatmentPatterns::plotEventDuration()
ggplot
clone()The objects of this class are cloneable with this method.
TreatmentPatternsResults$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.