Learn R Programming

rdss (version 1.0.14)

tidy.amce: Tidy estimates from the amce estimator

Description

Runs amce estimation function and returns tidy data frame output

Usage

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

Value

a data.frame of estimates

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

Examples

Run this code

# \donttest{
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)
# }

Run the code above in your browser using DataLab