Description Usage Arguments Details Value Author(s) References See Also Examples
View source: R/persistence.plot.R
Plot the persistence of a particular variable or interaction term in a logic forest.
1 | persistence.plot(fit, preds, PI, title)
|
fit |
an object of class |
preds |
a numeric value representing the number of predictors in the original data used to construct the logic forest model. |
PI |
a character string representing the variable or interaction term to be plotted. |
title |
an optional title for the plot |
Persistence plots can be generated for any variable or interaction term that occurs in a logic forest or LBoost model. Plots can also be generated for variables and interaction terms that do not occur in the model exactly as given in the argument PI
assuming that at least one subset match for that variable/interaction exists.
Invisibly all subset matches for the variable or interaction term defined by the argument PI
.
Bethany Wolf wolfb@musc.edu
Wolf, B.J., Slate, E.H., Hill, E.G. (2010) Logic Forest: An ensemble classifier for discovering logical combinations of binary markers. Bioinformatics.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | data(logforest.fit, LBoost.fit)
#Persistence of the predictor X5 in the logic forest model logforest.fit
persistence.plot(fit=logforest.fit, preds=50, PI="X5",
title="logforest Persistence for X5")
#Same plot for the LBoost model LBoost.fit
persistence.plot(fit=LBoost.fit, preds=50, PI="X5",
title="LBoost Persistence for X5")
#Persistence of the interaction term (X4 & X5) in the logic forest model
#logforest.fit
persistence.plot(fit=logforest.fit, preds=50, PI="X4 & X5",
title="logforest Persistence for interaction X4 & X5")
#Same plot for the LBoost model LBoost.fit
persistence.plot(fit=LBoost.fit, preds=50, PI="X4 & X5",
title="LBoost persistence for interaction X4 & X5")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.