Description Usage Arguments Details Examples
Plot the HPRSIM hierarchical moderation plots for hprism object.
1 | diffplot(l, dat, hvar, dot.size = 1, legend.size = 0.75)
|
l |
An rpart output used to plot prism or hprism tree |
dat |
The same data frame used to generate the prism or hprism object. |
hvar |
The hierarchical level variable for hprism tree, which is specified within double quotes. If unspecified, prism tree is fitted instead. See Example for detail. |
dot.size |
A numerical value giving the amount by which plotting should be magnified relative to the default. |
legend.size |
A numerical value giving the amount by which text should be magnified relative to the default. |
More can be learned by a deeper examination of the HPRISM tree topologies. Each branch path to a terminal node for an HPRISM tree explicitly details a discovered hierarchical interaction. This function plots the differences in (log) survival time between levels of the a focus variablefactor x versus values of a contextual social determinant variable w. Each dotted line represents a different terminal node from the HPRISM tree. Conditioning on a particular value of the social determinant variable, we see that if the data points on the line do not coincide, this indicates the first layer of interaction (i.e. the interaction of individual level variables defining the terminal nodes with the focus variable). If the lines are not parallel across different values of w, this is indicative of the hierarchical interaction.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.