Man pages for mattmoo/daohtools
Tools for working with registry data and transforming to days alive and out of hospital (DAOH)

calculate.daohCalculates the number of days each patient spent alive and...
calculate.ddCalculcates the number of days each patient spent dead during...
calculate.dihCalculcates the number of days each patient spent in hospital...
calculate.dra.risk.adjustment.glmCalculates a GLM for using in the survey direct risk...
calculate.dra.weightsGenerate weights for direct risk adjustment in each risk...
calculate.quantilesCalculates the quantile for each of a list of numbers, can be...
calculate.summary.dtSummarise a data.table
consolidate.eventsRuns the functions necessary to merge events so that they do...
convert.date.colsConvert dates of relevant columns by reference, so as not to...
convert.date.cols.autoTries to detect date columns by looking at the first entry....
convert.date.cols.fasttimeConvert dates of relevant columns by reference, so as not to...
detect.overlapping.eventsMerge overlapping admissions so that days are not counted...
encrypt.colEncrypts a column (or columns) from a file, with a given...
generate.all.site.tsdsGenerate timed sampling distributions for all sites in a
generate.dra.riskgp.columnsGenerates risk group columns.
generate.quantreg.modelGenerate a quantile regression model on which to risk adjust.
generate.riskgp.vectorFunctions for generating the data needed for adjustment.
generate.site.tsdGenerate the timed sampling distributions from real data.
generate.smoothed.sampling.distGenerates a smoothed sampling distribution (attempting to...
generate.timed.sampling.distGenerate a timed.sampling.dist object from an input...
merge.and.crop.eventsCrop the end date of each admission so that it is not outside...
modify.daoh.distributionModify a DAOH distribution, until at.quantile is...
modify.timed.daoh.distributionModify a timed DAOH distribution.
plot.daoh.barplotPlot DAOH barplot.
plot.daoh.densityPlot DAOH in a density chart
plot.daoh.freqpolyPlot DAOH in a frequency polygon
plot.daoh.histogramPlot DAOH in a histogram
prune.events.to.periodMatch index events to admissions that fall within the...
quantile.distFind a quantile from a sampling distribution.
quantile.dist.empEmpirically a quantile from a sampling distribution.
risk.adjust.on.quantreg.modelApply the quantile regression models to risk adjust a...
risk.adjust.quantregThis function will ideally take an output variable name and a...
smooth.daohA smoothing function particularly for DAOH.
std.errCalculate standard error, with or without NA
mattmoo/daohtools documentation built on Feb. 5, 2023, 5:38 a.m.