Skip to content

New feature: testing difference in coefficients? #64

@Ales-G

Description

@Ales-G

Hello,
I have more a question for a feature addition if it does not exists already.

I was wondering whether there is a way to test whether coefficients are different from one another across attributes?
Take the following model in WTP space

mnl_wtp <- logitr(
  data     = yogurt,
  outcome  = "choice",
  obsID    = "obsID",
  pars     = c("feat", "brand"),
  scalePar = "price"
)

summary(mnl_wtp)
Model Coefficients:
Estimate Std. Error z-value Pr(>|z|)
scalePar 0.366583 0.024366 15.0448 < 2.2e-16 ***
feat 1.340593 0.355867 3.7671 0.0001651 ***
brandhiland -10.135764 0.576089 -17.5941 < 2.2e-16 ***
brandweight -1.749083 0.179898 -9.7226 < 2.2e-16 ***
brandyoplait 2.003821 0.142377 14.0740 < 2.2e-16 ***

Signif. codes: 0 ‘’ 0.001 ‘’ 0.01 ‘’ 0.05 ‘.’ 0.1 ‘ ’ 1

Log-Likelihood: -2656.8878779
Null Log-Likelihood: -3343.7419990
AIC: 5323.7757559
BIC: 5352.7168000
McFadden R2: 0.2054148
Adj McFadden R2: 0.2039195
Number of Observations: 2412.0000000

Is there a way for me to test directly if for example the coefficient of `feat` and `brandyoplait` are the same? 

thank you very much in advance for your help on this!

best

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions