View source: R/estimateGremlinsModelHelperFunctions.R
convert_to_bayesm | R Documentation |
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
convert_to_bayesm(data, design)
data |
The data.frame or matrix that contains the respondents answers |
design |
The data.frame or matrix that contains the coded design |
lgtdata The list data structure for use with 'bayesm'
code_sawtooth_design
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.