Description Usage Arguments Value See Also

Convenience function to create a control object for use with a `dbarts`

sampler.

1 2 3 4 5 6 | ```
dbartsControl(verbose = FALSE, keepTrainingFits = TRUE, useQuantiles = FALSE,
keepTrees = FALSE, n.samples = NA_integer_,
n.cuts = 100L, n.burn = 200L, n.trees = 75L, n.chains = 4L,
n.threads = guessNumCores(), n.thin = 1L, printEvery = 100L,
printCutoffs = 0L, rngKind = "default", rngNormalKind = "default",
updateState = TRUE)
``` |

`verbose` |
Logical controlling sampler output to console. |

`keepTrainingFits` |
Logical controlling whether or not training fits are returned when the sampler runs. These are always computed as part of the fitting procedure, so disabling will not substantially impact running time. |

`useQuantiles` |
Logical to determine if the empirical quantiles of a columns of predictors
should be used to determine the tree decision rules. If |

`keepTrees` |
A logical that determines whether or not trees are cached as they are sampled. In all
cases, the current state of the sampler is stored as a single set of |

`n.samples` |
A non-negative integer giving the default number of samples to return each time the
sampler is run. Generally specified by |

`n.cuts` |
A positive integer or integer vector giving the number of decision rules to be used for each given predictor. If of length less than the number of predictors, earlier values are recycled. If for any predictor more values are specified than are coherent, fewer may be used. See details for more information. |

`n.burn` |
A non-negative integer determining how many samples, if any, are thrown away at the beginning of a run of the sampler. |

`n.trees` |
A positive integer giving the number of trees used in the sum-of-trees formulation. |

`n.chains` |
A positive integer detailing the number of independent chains for the sampler to use. |

`n.threads` |
A positive integer controlling how many threads will be used for various internal calculations, as well as the number of chains. Internal calculations are highly optimized so that single-threaded performance tends to be superior unless the number of observations is very large (>10k), so that it is often not necessary to have the number of threads exceed the number of chains. |

`n.thin` |
A positive integer determining how many iterations the MCMC chain should jump on the
decision trees alone before recording a sample. Serves to “thin” the samples against
serial correlation. |

`printEvery` |
If |

`printCutoffs` |
A non-negative integer specifying how many of the decision rules for a variable are printed in verbose mode. |

`rngKind` |
Random number generator kind, as used in |

`rngNormalKind` |
Random number generator normal kind, as used in |

`updateState` |
Logical setting the default behavior for many sampler methods with regards to the immediate updating of the cached state of the object. A current, cached state is only useful when saving/loading the sampler. |

An object of class `dbartControl`

.

vdorie/dbarts documentation built on Dec. 7, 2018, 7:53 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.