CategoricalByEndoscopist: This creates a proportion table for categorical variables by...

Description Usage Arguments Examples

Description

This creates a proportion table for categorical variables by endoscopist It of course relies on a Endoscopist column being present

Usage

1
CategoricalByEndoscopist(ProportionColumn, EndoscopistColumn)

Arguments

ProportionColumn

The column (categorical data) of interest

EndoscopistColumn

The endoscopist column

Examples

 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)

sebastiz/EndoMineR_devlop documentation built on May 29, 2019, 7:33 a.m.