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")
Run the code above in your browser using DataLab