Man pages for smm52/timeBlocks
Converts Serial Measurement Data into Longitudinal Trajectory of Equally-sized Time Blocks

adjustScoreGet the score from the first PC
calculateAdherencesControls the adherence calculation for the whole treatment...
calculateFixedAdherenceCalculates medication adherence based on a fixed, specified...
calculateFixedAdherenceFixedPeriodCalculates medication adherence between start and end dates
calculateFixedAdherenceListCalculates medication adherence based on a fixed, specified...
calculateInterpolationcalculate the linear interpolation from one measurement to...
calculateMedicationSpecificAdherenceCalculate the adherence for each patient and all their drug...
calculateOneAdherenceValueCalculate one adherence rate
calculatePCAPerform the principle component analysis using a correlation...
calculateResponseScoreCalculates a score based on principle component analysis
calculateScoreGet the score from the first PC
checkBaselineFormatChecks the format of the data set for the baseline dates
checkBaselineHospitalFormatChecks the format of the hospital data
checkBinaryPrescriptionFormatChecks the format of the data set for the prescriptions...
checkBlockFormatChecks the format of the data set for the time block building
checkPrescriptionFormatChecks the format of the data set for the prescriptions
checkResponseFormatChecks the format whether the format for the data set is a...
checkStructureColumnChecks whether a column is in a data frame and all its rows...
checkStructureColumnResponseChecks whether a column is in a data frame
checkVizFormatChecks the format of the data set quick visualisation
combineRowsCombine the information from all drug classes into one row...
createHospitalTimeBlocksCalculates block data for hospitalisations
createMedicationTimeBlocksCalculates the time block data for prescriptions
createTimeBlocksCalculates the time block data
doInterpolatecalculate the linear interpolation for each consecutive set...
findBaselineHospitalStayFinds the length of a hospital stay at the baseline block
findClosestToBaselineFinds the measurement date that is closest to baseline
findPrescriptionstAtBaselineFinds the prescription information around the baseline visit
listAllAdherencesHelper function to call individual (one ATC code) adherence...
makeLongTransform the time block results from wide to long format
noUseAtMissingBaselineSet missing medication info at baseline and immediately after...
pdc_treatmentCalculates adherence to drug treatments based on the...
plotIndividualScorePlot the score of an individual patient for all blocks (with...
readDataRead in a dataset
safe.ifelseType safe if.else implementation
visualiseOnePatientBinaryCreates a simple visualisation for serial and binary...
smm52/timeBlocks documentation built on Nov. 27, 2022, 3:54 a.m.