Skip to content

Commit 285136f

Browse files
authored
Merge pull request #48 from osorensen/copilot/add-simple-example-compute-sequentially
Add example to compute_sequentially() documentation
2 parents cf4e34a + e56a4ef commit 285136f

File tree

3 files changed

+20
-1
lines changed

3 files changed

+20
-1
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5-
parameter_trace
5+
parameter_trace
6+
*.Rcheck
7+
*.tar.gz

R/compute_sequentially.R

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
#' @return An object of class BayesMallowsSMC2.
3333
#' @export
3434
#'
35+
#' @examples
36+
#' # Compute the model sequentially with complete rankings
37+
#' mod <- compute_sequentially(
38+
#' complete_rankings,
39+
#' hyperparameters = set_hyperparameters(n_items = 5),
40+
#' smc_options = set_smc_options(n_particles = 100, n_particle_filters = 1)
41+
#' )
42+
#'
3543
compute_sequentially <- function(
3644
data,
3745
hyperparameters = set_hyperparameters(),

man/compute_sequentially.Rd

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)