leeper / cregg

Simple Conjoint Analyses, Tidying, and Visualization
Other
50 stars 7 forks source link

Formally test for difference in effect sizes between attribute levels #42

Open maltebecker5 opened 2 years ago

maltebecker5 commented 2 years ago

Dear Thomas,

I have a question about how to formally test whether estimates for two attribute levels within one dimension are significantly different from each other. E.g., in the example below, is the estimated effect for a person from Iraq significantly different from the effect size for a person coming from China?

Thank you!

## load package
library("cregg")

## code goes here
data("immigration")
# estimating AMCEs with constraints
x <- amce(immigration, ChosenImmigrant ~ Gender + ReasonForApplication * CountryOfOrigin,
     id = ~CaseID)
plot(x)

## session info for your system
sessionInfo()