analysis | R Documentation |
This function runs either a frequentist or bayesian analysis of a dataset.
analysis( runs, formula, main.ivs = NULL, data, cluster = NULL, weights = NULL, model.type = NULL, model.extra.args = NULL, inference = c("frequentist", "bayesian") )
runs |
The number of runs to conduct. Optionally, an object returned from "resample_df." |
formula |
The formula to run. |
data |
The data to use for analysis. |
cluster |
Formula specifying the variable in data that identifies clusters within the data. |
weights |
Vector of weights to use. |
model.type |
The model type is determined automatically from the formula and data. Can optionally be specified directly. |
model.extra.args |
Extra arguments to the model that will be run. |
inference |
The type of inference to use: frequentist (the default) or bayesian. |
analysis(runs = 1000, formula = out ~ treat, data = dt, inference = "bayesian")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.