splitpoints {dlmtree} | R Documentation |

## Determines split points for continuous modifiers

### Description

Method for determining split points for continuous modifiers

### Usage

```
splitpoints(object, var, round = NULL)
```

### Arguments

`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 |

### Details

splitpoints

### Value

A data frame with split points and the probability that a split point was >= that split point value

### Examples

```
# 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)
```

[Package

*dlmtree*version 1.0.0 Index]