Skip to content

Commit

Permalink
Fix point estimate example and redocument
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreypullin committed May 28, 2020
1 parent 99ff1f8 commit 0d1b86b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/extract.R
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ posterior_interval.optim_fit <- function(object,
#' statistical interpretation of the values.
#'
#' @examples
#' fit <- rater(long_data(anesthesia), dawid_skene(), method = "optim")
#' fit <- rater(anesthesia, dawid_skene(), method = "optim")
#' point_estimate(fit, pars = "pi")
#'
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/rater_fit_class.R
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ get_model <- function(f) {

#' Get the posterior samples from a rater mcmc fit object
#'
#' @fit A rater mcmc fit object
#' @param fit A rater mcmc fit object
#'
#' @noRd
get_samples <- function(fit) {
Expand Down
2 changes: 1 addition & 1 deletion man/caries.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/point_estimate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions tests/testthat/test_rater.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
context("rater")

# This function needs more tests!

test_that("rater returns objects of the correct type", {

expect_equal(is.rater_fit(ds_fit), TRUE)
expect_equal(is.mcmc_fit(ds_fit), TRUE)

})

test_that("rater error for bad input", {



})

test_that("parse priors are correct", {
Expand Down

0 comments on commit 0d1b86b

Please sign in to comment.