Skip to content

Commit 36cff75

Browse files
committed
Updating run_mod and prep_priors as reviewed
1 parent 89acd62 commit 36cff75

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

R/Run_Mod.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
#' - `nIterations`: Number of iteration specified.
4848
#' - `nBurnin`: Number of burn ins.
4949
#' - `nThin`: Thinning number (niter/nmc)
50-
#' - A [list] of `priors` that summarize the input priors, including:
50+
#' - `priors`: A [list] that summarizes the input priors, including:
5151
#' - `mu_hyp_param`
5252
#' - `prec_hyp_param`
5353
#' - `omega_param`

R/prep_priors.R

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@
4141
#'
4242
#' @returns A "curve_params_priors" object
4343
#' (a subclass of [list] with the inputs to `prep_priors()` attached
44-
#' as [attributes] named `"used_priors"`).
44+
#' as [attributes] entry named `"used_priors"`), containing the following
45+
#' elements:
4546
#' - "n_params": Corresponds to the 5 parameters being estimated.
4647
#' - "mu.hyp": A [matrix] of hyperpriors with dimensions
4748
#' `max_antigens` x 5 (# of parameters), representing the mean of the
48-
#' hyperprior distribution for each biomarker: y0, y1, t1, r, and alpha).
49+
#' hyperprior distribution for the five seroresponse parameters: y0, y1, t1, r, and alpha).
4950
#' - "prec.hyp": A three-dimensional [numeric] [array]
5051
#' with dimensions `max_antigens` x 5 (# of parameters),
5152
#' containing the precision matrices of the hyperprior distributions of
@@ -111,7 +112,6 @@ prep_priors <- function(max_antigens,
111112
}
112113

113114
# Return results as a list
114-
115115
prepped_priors <- list(
116116
"n_params" = n_params,
117117
"mu.hyp" = mu_hyp,
@@ -121,9 +121,7 @@ prep_priors <- function(max_antigens,
121121
"prec.logy.hyp" = prec_logy_hyp
122122
) |>
123123
structure(
124-
class = c("curve_params_priors", "list"),
125-
"used_priors" = as.list(environment())
126-
)
124+
class = c("curve_params_priors", "list"))
127125
# Creating two objects in a list, one will be used in run_mod and the other
128126
# will be attached to run_mod output as an attribute.
129127
prepped_priors <- prepped_priors |>

0 commit comments

Comments
 (0)