This function creates an object of class RprobitB_normalization,
which defines the utility scale and level.
Usage
RprobitB_normalization(
level,
scale = "Sigma_1,1 := 1",
form,
re = NULL,
alternatives,
base,
ordered = FALSE
)
# S3 method for class 'RprobitB_normalization'
print(x, ...)Arguments
- level
[
character(1)]
The alternative name with respect to which utility differences are computed. Currently, only differences with respect to the last alternative are supported.- scale
[
character(1)]
A character which determines the utility scale. It is of the form<parameter> := <value>, where<parameter>is either the name of a fixed effect orSigma_<j>,<j>for the<j>th diagonal element ofSigma, and<value>is the value of the fixed parameter.- form
[
formula]
A model description with the structurechoice ~ A | B | C, wherechoiceis the name of the dependent variable (the choices),Aare names of alternative and choice situation specific covariates with a coefficient that is constant across alternatives,Bare names of choice situation specific covariates with alternative specific coefficients,and
Care names of alternative and choice situation specific covariates with alternative specific coefficients.
Multiple covariates (of one type) are separated by a
+sign. By default, alternative specific constants (ASCs) are added to the model. They can be removed by adding+0in the second spot.In the ordered probit model (
ordered = TRUE), theformulaobject has the simple structurechoice ~ A. ASCs are not estimated.- re
[
character()|NULL]
Names of covariates with random effects. Ifre = NULL(the default), there are no random effects. To have random effects for the ASCs, include"ASC"inre.- alternatives
[
character()]
The names of the choice alternatives. If not specified, the choice set is defined by the observed choices.If
ordered = TRUE,alternativesis assumed to be specified with the alternatives ordered from worst to best.- base
[
character(1)]
The name of the base alternative for covariates that are not alternative specific (i.e. type 2 covariates and ASCs).Ignored and set to
NULLif the model has no alternative specific covariates (e.g. in the ordered probit model).By default,
baseis the last element ofalternatives.- ordered
[
logical(1)]
IfTRUE, the choice setalternativesis assumed to be ordered from worst to best.- x
An object of class
RprobitB_normalization.- ...
Currently not used.
Value
An object of class RprobitB_normalization, which is a list of
level, a list with the elementslevel(the number of the alternative specified by the inputlevel) andname(the name of the alternative, i.e. the inputlevel), or alternativelyNAin the ordered probit case,and
scale, a list with the elementsparameter(either"s"for an element ofSigmaor"a"for an element ofalpha), the parameterindex, and the fixedvalue. Ifparameter = "a", also thenameof the fixed effect.
Details
Utility models require normalization with respect to level and scale.
For level normalization,
{RprobitB}takes utility differences with respect to one alternative. For the ordered model where only one utility is modelled,{RprobitB}fixes the first utility threshold to 0.For scale normalization,
{RprobitB}fixes one model parameter. Per default, the first error-term variance is fixed to1. This is specified viascale = "Sigma_1,1 := 1". Alternatively, any error-term variance or any non-random coefficient can be fixed.
