Description Usage Arguments Examples
This creates a proportion table for categorical variables by endoscopist It of course relies on a Endoscopist column being present
1 | CategoricalByEndoscopist(ProportionColumn, EndoscopistColumn)
|
ProportionColumn |
The column (categorical data) of interest |
EndoscopistColumn |
The endoscopist column |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #The function plots any numeric metric by endoscopist
# Mypath demo dataset. These functions are all part of Histology data
# cleaning as part of the package.
v<-Mypath
v$NumBx<-HistolNumbOfBx(Mypath$Macroscopicdescription,'specimen')
v$BxSize<-HistolBxSize(v$Macroscopicdescription)
# The histology is then merged with the Endoscopy dataset. The merge occurs
# according to date and Hospital number
v<-Endomerge2(Myendo,'Dateofprocedure','HospitalNumber',v,'Dateofprocedure',
'HospitalNumber')
#The function relies on the other Barrett's functions being run as well:
v$IMorNoIM<-Barretts_PathStage(v,'Histology')
colnames(v)[colnames(v) == 'pHospitalNum'] <- 'HospitalNumber'
# The function takes the column with the extracted worst grade of
# histopathology and returns the proportion of each finding (ie
# proportion with low grade dysplasia, high grade etc.) for each
# endoscopist
kk<-CategoricalByEndoscopist(v$IMorNoIM,v$Endoscopist)
rm(Myendo)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.