GenerateZstandard | R Documentation |
Generate the combinations of all the tumor characteristics.
GenerateZstandard(y, missingTumorIndicator = 888)
y |
the phenotype file. The first column is the case control disease status. The other columns are the tumor characteristics status |
missingTumorIndicator |
The indicators to show the tumor characteristics are missing. In the example, we put missing tumor characteristics as 888. Note, for all the controls subjects, they don't have tumor characteristics. So their tumor characteristics are put as NA instead of 888 to differentiate with cases missing tumor characteristics. |
a matrix with all the combinations of tumor characteristics. All the subtypes with less than 10 are removed by default.
data(data, package="TOP") #load in the breast cancer example #this is a simulated breast cancer example #there are around 5000 breast cancer cases and 5000 controls, i.e. people without disease data[1:5,] #four different tumor characteristics were included, ER (positive vs negative), PR (positive vs negative), HER2 (positive vs negative), grade (ordinal 1, 2, 3) #the phenotype file y <- data[,1:5] #generate the combinations of all the subtypes #by default, we remove all the subtypes with less than 10 cases z.standard <- GenerateZstandard(y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.