tidy.amce: Tidy estimates from the amce estimator

View source: R/helpers-conjoint-experiments.R

tidy.amceR Documentation

Tidy estimates from the amce estimator

Description

Runs amce estimation function and returns tidy data frame output

Usage

## S3 method for class 'amce'
tidy(x, alpha = 0.05, ...)

Arguments

x

an amce fit object from cjoint::amce

alpha

Confidence level

...

Extra arguments to pass to tidy

Details

See https://book.declaredesign.org/experimental-descriptive.html#conjoint-experiments

Value

a data.frame of estimates

Examples



library(cjoint)

data(immigrationconjoint)
data(immigrationdesign)

# Run AMCE estimator using all attributes in the design
results <- amce(Chosen_Immigrant ~  Gender + Education + `Language Skills` +
                  `Country of Origin` + Job + `Job Experience` + `Job Plans` +
                  `Reason for Application` + `Prior Entry`, data = immigrationconjoint,
                cluster = TRUE, respondent.id = "CaseID", design = immigrationdesign)

# Print summary
tidy(results)



rdddr documentation built on July 3, 2022, 5:06 p.m.