setup_specs: Set up specifications

View source: R/setup_specs.r

setup_specsR Documentation

Set up specifications

Description

[Deprecated] This function was deprecated because the new version of specr uses a new analytic framework. In this framework, you should use the function setup() instead. This function creates a tibble that includes all possible specifications based the dependent and independent variables, model types, and control variables that are specified. This function simply produces a tibble of all combinations. It can be used to check the specified analytical choices. This function is called within run_specs(), which estimates all specified models based on the data that are provided.

Usage

setup_specs(x, y, model, controls = NULL, all.comb = FALSE)

Arguments

x

a vector denoting independent variables

y

a vector denoting the dependent variables

model

a vector denoting the model(s) that should be estimated.

controls

a vector of the control variables that should be included. Defaults to NULL.

all.comb

a logical value indicating what type of combinations of the control variables should be specified. Defaults to FALSE (i.e., none, all, and each individually). If this argument is set to TRUE, all possible combinations between the control variables are specified (see examples).

Value

a tibble that includes all possible specifications based on combinations of the analytic choices.

See Also

run_specs() to run the specification curve analysis.

Examples

setup_specs(x = c("x1", "x2"),
            y = "y2",
            model = "lm",
            controls = c("c1", "c2"))


specr documentation built on Jan. 22, 2023, 1:24 a.m.