make_events | R Documentation |
Draw n
events given event probabilities.
Draws full data only. For incomplete data see
make_data
.
make_events(
model,
n = 1,
w = NULL,
P = NULL,
A = NULL,
parameters = NULL,
param_type = NULL,
include_strategy = FALSE,
...
)
model |
A |
n |
An integer. Number of observations. |
w |
A numeric matrix. A 'n_parameters x 1' matrix of event probabilities with named rows. |
P |
A |
A |
A |
parameters |
A vector of real numbers in [0,1]. Values of parameters to
specify (optional). By default, parameters is drawn from
|
param_type |
A character. String specifying type of parameters to make
'flat', 'prior_mean', 'posterior_mean', 'prior_draw', 'posterior_draw',
'define. With param_type set to |
include_strategy |
Logical. Whether to include a 'strategy' vector. Defaults to FALSE. Strategy vector does not vary with full data but expected by some functions. |
... |
Arguments to be passed to make_priors if
param_type == |
A data.frame
of events
model <- make_model('X -> Y')
make_events(model = model)
make_events(model = model, param_type = 'prior_draw')
make_events(model = model, include_strategy = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.