diff --git a/R/DESCRIPTION b/R/DESCRIPTION index f6f82f0d..2a1cc3fb 100644 --- a/R/DESCRIPTION +++ b/R/DESCRIPTION @@ -1,7 +1,7 @@ Package: hBayesDM Title: Hierarchical Bayesian Modeling of Decision-Making Tasks -Version: 1.0.1.9000 -Date: 2019-09-01 +Version: 1.0.2.9000 +Date: 2019-11-13 Author: Woo-Young Ahn [aut, cre], Nate Haines [aut], diff --git a/R/NEWS.md b/R/NEWS.md index 21446d94..1364103e 100644 --- a/R/NEWS.md +++ b/R/NEWS.md @@ -1,3 +1,7 @@ +# hBayesDM 1.0.2 + +- Fix an error on using data.frame objects as data (#112). + # hBayesDM 1.0.1 - Minor fix on the plotting function. diff --git a/R/R/HDIofMCMC.R b/R/R/HDIofMCMC.R index a8f578f3..0b1c0558 100644 --- a/R/R/HDIofMCMC.R +++ b/R/R/HDIofMCMC.R @@ -1,8 +1,9 @@ #' Compute Highest-Density Interval #' #' @description -#' Computes the highest density interval from a sample of representative values, estimated as shortest credible interval. -#' Downloaded from John Kruschke's website \url{http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis/} +#' Computes the highest density interval from a sample of representative values, +#' estimated as shortest credible interval. +#' Based on John Kruschke's codes. #' #' @param sampleVec A vector of representative values from a probability distribution (e.g., MCMC samples). #' @param credMass A scalar between 0 and 1, indicating the mass within the credible interval that is to be estimated. diff --git a/R/R/hBayesDM_model.R b/R/R/hBayesDM_model.R index bef5c1f3..ba71b874 100644 --- a/R/R/hBayesDM_model.R +++ b/R/R/hBayesDM_model.R @@ -306,7 +306,8 @@ hBayesDM_model <- function(task_name, ############### Print for user ############### cat("\n") cat("Model name =", model, "\n") - cat("Data file =", data, "\n") + if (is.character(data)) + cat("Data file =", data, "\n") cat("\n") cat("Details:\n") if (vb) { diff --git a/R/R/plotHDI.R b/R/R/plotHDI.R index b439fc94..eb5852ac 100644 --- a/R/R/plotHDI.R +++ b/R/R/plotHDI.R @@ -1,6 +1,7 @@ -#' Plots highest density interval (HDI) from (MCMC) samples and prints HDI in the R console. HDI is indicated by a red line. +#' Plots highest density interval (HDI) from (MCMC) samples and prints HDI in the R console. +#' HDI is indicated by a red line. +#' Based on John Kruschke's codes. #' -#' Based on John Kruschke's codes \url{http://www.indiana.edu/~kruschke/DoingBayesianDataAnalysis/} #' @param sample MCMC samples #' @param credMass A scalar between 0 and 1, indicating the mass within the credible interval that is to be estimated. #' @param Title Character value containing the main title for the plot diff --git a/R/docs/404.html b/R/docs/404.html new file mode 100644 index 00000000..bedafff8 --- /dev/null +++ b/R/docs/404.html @@ -0,0 +1,152 @@ + + + + + + + + +Page not found (404) • hBayesDM + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+
+ + +Content not found. Please use links in the navbar. + +
+ +
+ + + + +
+ + + + + + + + diff --git a/R/docs/articles/getting_started.html b/R/docs/articles/getting_started.html index d1459f7e..f088284c 100644 --- a/R/docs/articles/getting_started.html +++ b/R/docs/articles/getting_started.html @@ -7,8 +7,9 @@ Getting Started • hBayesDM - - + + + @@ -31,7 +32,7 @@ hBayesDM - 1.0.1 + 1.0.2 @@ -39,7 +40,7 @@