ds_rf: Random forest

Description Usage Arguments Examples

View source: R/rf.R

Description

Demonstrates the interface. Otherwise only difference is that it internally normalizes input data before fitting and predicting.

Usage

1
ds_rf(space, data, ...)

Arguments

space

(character(1))
Name of the V-Dem indicator for a democratic space

data

(base::data.frame()) A data frame or similar object

...

other arguments passed to ranger::ranger()

Examples

1
2
3
4
data("states")

mdl <- ds_rf("v2x_veracc_osp", states)
preds <- predict(mdl, new_data = states)

andybega/demspaces documentation built on April 18, 2021, 11:05 p.m.