analysis: Main entry function to conduct analysis of a dataset.

View source: R/analyze.r

analysisR Documentation

Main entry function to conduct analysis of a dataset.

Description

This function runs either a frequentist or bayesian analysis of a dataset.

Usage

analysis(
  runs,
  formula,
  main.ivs = NULL,
  data,
  cluster = NULL,
  weights = NULL,
  model.type = NULL,
  model.extra.args = NULL,
  inference = c("frequentist", "bayesian")
)

Arguments

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.

Examples

analysis(runs = 1000, formula = out ~ treat, data = dt, inference = "bayesian")


jacobaro/danalyze documentation built on Oct. 20, 2022, 8:09 a.m.