Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
Make the code even simpler, and added summary(output)
  • Loading branch information
yhoriuchi committed Aug 18, 2023
1 parent 5311f38 commit 3c9a2d7
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ devtools::install_github("yhoriuchi/projoint")
library(projoint)

# Reshape data for conjoint analysis
data <- reshape_projoint(.dataframe = exampleData1,
.outcomes = c(paste0("choice", 1:8),
# choice in the repeated task
"choice1_repeated_flipped"))
# This example includes the repeated task.
data <- reshape_projoint(exampleData1,
c(paste0("choice", 1:8), "choice1_repeated_flipped"))

# Run conjoint analysis
output <- projoint(data)

# Make a figure
plot(output)

# Show the estimated quantities of interest
summary(output)

```

### Relevant Article
Expand Down

0 comments on commit 3c9a2d7

Please sign in to comment.