Skip to content

Commit

Permalink
Update reshape_projoint.R
Browse files Browse the repository at this point in the history
Changed the order of input arguments so that we don't need to add ".outcomes = " in the minimal code.
  • Loading branch information
yhoriuchi committed Aug 18, 2023
1 parent 49bac1a commit 6d596b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/reshape_projoint.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
#' @import rlang
#' @import tidyselect
#' @param .dataframe A data frame, preferably from \code{\link{read_Qualtrics}}
#' @param .idvar "ResponseId" (default): a character identifying the column name containing respondent
#' @param .outcomes A character vector identifying the column names that contain outcomes. If there is a repeated task, it should be the LAST element in this vector.
#' @param .outcomes_ids c("A", "B") (default): a vector identifying the possibilities for the outcome variables -- e.g., c("Candidate A", "Candidate B")
#' @param .alphabet "K" (default): a letter indicating conjoint attributes. If using Strezhnev's package (\url{https://github.com/astrezhnev/conjointsdt}) in Qualtrics.
#' @param .idvar "ResponseId" (default): a character identifying the column name containing respondent
#' @param .repeated TRUE (default) if there is a repeated task (recommended). The repeated task should be the same as the first task.
#' @param .flipped TRUE (default) if the profiles of the repeated task are flipped (recommended)
#' @param .covariates NULL (default): a character vector identifying respondents' covariates used for subgroup analysis
Expand All @@ -36,10 +36,10 @@

reshape_projoint <- function(
.dataframe,
.idvar = "ResponseId",
.outcomes,
.outcomes_ids = c("A", "B"),
.alphabet = "K",
.idvar = "ResponseId",
.repeated = TRUE,
.flipped = TRUE,
.covariates = NULL,
Expand Down

0 comments on commit 6d596b3

Please sign in to comment.