iloglike {RMM} | R Documentation |
The log-likelihood value for each individual and each alternative.
Description
For function that calculating standard error of estimate. Internal function that users should not call directly.
Usage
iloglike(
eta,
Choice_Set_List,
Choice_Set_Code,
Base_Prod,
Num_Prod,
Num_Attr,
Alts_Same_Choice_Set,
Is_Purchase
)
Arguments
eta |
numeric vector, the model parameters to be estimated |
Choice_Set_List |
list, product code included for each choice set. |
Choice_Set_Code |
numeric, choice set code Number specified for calculating log-likelihood. |
Base_Prod |
numeric, the baseline product number |
Num_Prod |
numeric, the number of all products in observed data. |
Num_Attr |
numeric, the number of attributes in observed data. |
Alts_Same_Choice_Set |
list, for internal calculation, a list of data exposed to the same choice set. |
Is_Purchase |
list, for internal calculation, list of customers who are exposed to the same choice set who purchased the product. If purchased 1, otherwise 0. |
Value
The log-likelihood value for each individual and each alternative.
[Package RMM version 0.1.0 Index]