Skip to content

Commit

Permalink
small updates to vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
jhelvy committed Jul 12, 2023
1 parent 56f2a06 commit 7b455dd
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions vignettes/usage.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,19 @@ If you do wish to restrict some attribute level combinations, you can do so usin

- `"Gala"` apples will not be shown with the prices `1.5`, `2.5`, and `3.5`.
- `"Honeycrisp"` apples will not be shown with prices less than `2`.
- `"Honeycrisp"` apples will only be shown with `"Average"` freshness.
- `"Fuji"` apples will not be shown with the `"Excellent"` freshness.

With these restrictions, there are now only 39 profiles compared to 81 without them:
With these restrictions, there are now only 57 profiles compared to 81 without them:

```{r}
restricted_profiles <- cbc_restrict(
profiles,
type == "Gala" & price %in% c(1.5, 2.5, 3.5),
type == "Honeycrisp" & price > 2,
type == "Honeycrisp" & freshness %in% c("Poor", "Excellent"),
type == "Honeycrisp" & price < 2,
type == "Fuji" & freshness == "Excellent"
)
restricted_profiles
dim(restricted_profiles)
```

# Generate survey designs
Expand All @@ -85,23 +83,14 @@ Once a set of profiles is obtained, a conjoint survey can then be generated usin
- `n_q`: The number of questions per respondent.
- `method`: The design strategy to use (defaults to `"random"`).

The `method` argument determines the design method used. Options are:
The `method` argument determines the design strategy to use: `"random"`, `"full"`, `"orthogonal"`, `"dopt"`, `"CEA"`, or `"Modfed"`. All methods ensure that the two following criteria are met:

- `"random"`
- `"full"`
- `"orthogonal"`
- `"dopt"`
- `"CEA"`
- `"Modfed"`

All methods ensure that the two following criteria are met:

1. No two profiles are the same within any one choice set.
1. No two profiles are the same within any one choice set.
2. No two choice sets are the same within any one respondent.

The table below summarizes method compatibility with other design options, including the ability to include a "no choice" option, the creation of a "labeled" design (also called a "alternative-specific" design), the use of restricted profile, and the use of blocking.
The table below summarizes method compatibility with other design options, including the ability to include a "no choice" option, the creation of a "labeled" design (also called a "alternative-specific" design), the use of restricted profiles, and the use of blocking.

Method | Include "no choice"? | Labeled designs? | Restricted profiles? | Blocking?
Method | No choice | Labeled designs | Restricted profiles | Blocking
---|---|---|---|---
`"random"` | Yes | Yes | Yes | No
`"full"` | Yes | Yes | Yes | Yes
Expand Down

0 comments on commit 7b455dd

Please sign in to comment.