Model specification

Model specification

Before you estimate a model, you must load the data and specify the role of each variable in the model. This packages defines Microdata for that purpose.

Microdata(
        DF::DataFrame,
        model::Dict{Symbol, String};
        hints::Dict{Symbol, TermOrTerms},
        subset::AbstractVector{Bool},
        weights::AbstractWeights = UnitWeights(size(DF, 1))
        corr::CorrStructure,
    )

To construct a Microdata, two arguments are compulsory: a DataFrame, which contains the data, and a dictionary, which specifies the components of the model of interest. To construct this dictionary, use the macro @micromodel.

All regression models need a response, but other requirements may vary. (Check the documentation!) For example, OLS asks for response and control. In defining these sets, follow the syntax of Formula. (See the tutorial for examples.) Conventional sets include:

As for the keywords: