Man pages for n8thangreen/HESmanip
Hospital length of stay data preprocessing and analysis

adminCensAdministrative censoring
AgeCatModifyAge category modification
antibioticLookup.datAntibiotic look-up table
artifCensArtificial censoring
boot.closBootstrap LOS
boot.clos.dtableBootstrap LOS with data.table
byGroupHRCalculate Cox regression by groups
byGroupHR.boxplotHazard ratio boxplots
byGroupLOSLength of stay by groups
byGroupLOS.boxplotBoxplot of length of stay by groups
capwordsCapitalise words
catcodesConcatenate codes
catStaysConcatenate hospital stays
charlsonCalculate Charlson comorbidity score
clean.dataClean ICD10 codes
clean.refClean reference table codes
cLOSExtension of clos() with medians
commonlistcommonlist
dat.icu.pneuSample ICU pneumonia time to event data from kmi package in...
etmFormatTransform to etm format
extractCoxExtract subset of Cox regression statistics.
facFlagsGroup patients across multiple columns
findDuplicatesFind patient record duplicates
getGramsOtain Grams-negative or Gram-positive patient organism status
getHESRead-in HES data
getPatientGroupingsGroup patients by risk factors
getSurvDataTransform to survival data format
HCAIsummaryHCAIsummary
HESmanip-packageHospital length of stay data preprocessing and analysis
highlevelHCAICombined length of stay calculations
HRboxplot.batchHazard ratio boxplots for all groups as a batch run
hr.naiveTime-independent Cox regression
hr.tv.causespecificTime-dependent Cox regression for the cause-specific model
hr.tv.subdistributionTime-dependent Cox regression for the subdistribution model
ICDwordmatchICD10 word match against patient codes
infdata_sampleExposure/infected sample of patients in linked HES-LabBase2...
iqrInterquartile range
listLOSLength of stay multistate model statistics
long2wideConvert length of stay data from "new" long format to "old"...
LOSboot.plotLength of stay envelope plot
LOSboot.plot.wideLength of stay bootstrap plot with envelope bounds for "old"...
LOStableHospital length of stay table
multistateplots.orgMultistate plots by organism types
my.ephimy.ephi
my_recodeGroup together codes
na.meanMean calculation excluding NAs
na.medianMedian calculation excluding NAs
na.sdstandard deviation calculation excluding NAs
plot.FollowUpChartplot.FollowUpChart
plot.FollowUpChartBatchplot.FollowUpChartBatch
rmAllButOneRemove all but one patient record
rmDuplicatesRemove duplicate patient records
rmOrganismRemove duplicate entries which only differ by HCAI organism...
spellLengthFind actual start and end of a patients in-hospital spell
splitByGroupSplit patient record data in subsets which all contain all...
splitByOrgStratify the patient sample by organism type
stratSurvDataStratify patient survival data
subdistnFine & Gray subdistribution model time to event times
summaryTableAllsummaryTableAll
summaryTableGroupsummaryTableGroup
summaryTableRFsummaryTableRF
survDataByGenderSurvival analysis format stratified by gender
suscdata_sampleUnexposed/uninfected sample of patients in HES format
table2.HRtable2.HR
table3.HRMore condensed table format of hazard ratio values for...
table.HRtable.HR
totaldata_sampleCombined exposed and unexposed sample data
trim.boxplottrim.boxplot
trimSurvtrimSurv
tvCoxTime-varying regression data representation
whichPatientDrugMatch patients against a look-up table of treatments
whichPatientDrug.joinsIdentify which patients have anti-microbial resistance and...
n8thangreen/HESmanip documentation built on March 21, 2020, 12:20 a.m.