markhwhiteii / bwsTools

Tools for Case 1 Best-Worst Scaling (MaxDiff) Designs
https://osf.io/wb4c3/
Other
13 stars 2 forks source link

Help Creating new BIB Designs #44

Closed arainboldt closed 3 years ago

arainboldt commented 3 years ago

Hi,

I'm trying to create new bibd's and have some questions about the functions provided.

First, the make_bibd function only provides 32 variations. Why is this?

To get some more flexibility and to experiment, I've extracted part of the make_bibd function to allow for the direct parameterization of the design, as below:

design_bibd <- function(t, b, k) {
    out <- crossdes::find.BIB(t, b, k)
    colnames(out) <- paste("Option", 1:ncol(out), sep = "_")
    rownames(out) <- 1:nrow(out)
    return(dplyr::as_tibble(out, rownames = "Block"))
}

I'm assuming that t, b, and k, are number of items, number of blocks, and block size.

When I run design_bibd(15,12,5), however, expand it to the respondent-block format and run it through get_checks I'm getting these two errors:

Each pairwise comparison between items must occur for every id
Each pairwise comparison between items must occur the same amount of times for each id.
arainboldt commented 3 years ago

sorry for this. I found the documentation for crossdes::find.BIB and it explains why there's no bibd for the parameters I've provided.