splitpoints | R Documentation |
Method for determining split points for continuous modifiers
splitpoints(object, var, round = NULL)
object |
An object of class dlmtree with DLM type hdlm & hdlmm |
var |
The name of a continuous variable for which the split points will be reported |
round |
The number of decimal places to round the variable (var) to. No rounding occurs if round=NULL (default) For positive integer values of round, the variable will be rounded and split points will be reported at the resulting level |
splitpoints
A data frame with split points and the probability that a split point was >= that split point value
# Split points with HDLM
D <- sim.hdlmm(sim = "B", n = 1000)
fit <- dlmtree(y ~ .,
data = D$dat,
exposure.data = D$exposures,
dlm.type = "linear",
family = "gaussian",
het = TRUE)
splitpoints(fit, var = "mod_num", round = 2)
splitpoints(fit, var = "mod_scale", round = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.