convert_to_bayesm {RGremlinsConjoint}R Documentation

Convert 'RGremlinsConjoint' formatted Data to 'bayesm' format

Description

Converts a data file and a coded design file from the format expected by the package to a format appropriate for estimation in 'bayesm' rhierMnlRwMixture

Usage

convert_to_bayesm(data, design)

Arguments

data

The data.frame or matrix that contains the respondents answers

design

The data.frame or matrix that contains the coded design

Value

lgtdata The list data structure for use with 'bayesm'

See Also

code_sawtooth_design

Examples

## Not run: 
 data <- read.csv("data.csv")
 design <- read.csv("design.csv")
 design <- code_sawtooth_design(design)
 convert_to_bayesm(data, design)

## End(Not run)

[Package RGremlinsConjoint version 0.9.1 Index]