Skip to content

Commit

Permalink
Typos and remove braces
Browse files Browse the repository at this point in the history
  • Loading branch information
rowlandseymour committed Nov 1, 2024
1 parent c03b7e0 commit b2d90e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Authors@R:
comment = c(ORCID = "0000-0002-8739-3921")))
Description: A suite of functions that allow a full, fast, and efficient Bayesian treatment of the Bradley--Terry model.
Prior assumptions about the model parameters can be encoded through a multivariate normal prior distribution.
Inference is performed using a Polya-Gamma latent variable representation of the model.
Inference is performed using a latent variable representation of the model.
License: GPL (>= 3)
Encoding: UTF-8
LazyData: true
Expand Down
6 changes: 3 additions & 3 deletions R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#'
#' @param n.objects The number of areas in the study.
#' @param comparisons An N x 2 data frame, where N is the number of comparisons. Each row should correspond to a judgment. The first column is the winning object, the second column is the more losing object. The areas should be labeled from 1 to n.objects.
#' @return A matrix where the {i, j}th element is the number of times object i beat object j.
#' @return A matrix where the i, j th element is the number of times object i beat object j.
#'
#' @examples
#'
Expand Down Expand Up @@ -175,7 +175,7 @@ construct.design.matrix.both.ways <- function (n.objects) {
#' 0 if player 1 is the winner
#' @param player1 vector of first players
#' @param player2 vector of second players
#' @param win.matrix a win-loss matrix where the {i,j}th element is the number of
#' @param win.matrix a win-loss matrix where the i,j th element is the number of
#' times object i beat object j
#' @param player.prior.var (optional) matrix specifying the prior covariance of
#' the player correlation parameters
Expand Down Expand Up @@ -868,7 +868,7 @@ BBTm.with.formula <- function(outcome, player1, player2,
#'
#' If `beta.initial`is omitted, it is set to a vector of zeroes.
#'
#' If `kappa.var` is omitted, it is set to N(0, 5^2), if `kappa.intial` is omitted
#' If `kappa.var` is omitted, it is set to N(0, 5^2), if `kappa.initial` is omitted
#' it is set to 0.5.
#'
#'
Expand Down

0 comments on commit b2d90e1

Please sign in to comment.