|
10 | 10 | #' <doi:10.31234/osf.io/uwfjc>. |
11 | 11 | #' |
12 | 12 | #' @param fit_a Fitted model object for Model A. This can be a tsnet_fit object |
13 | | -#' (obtained from [stan_gvar()]), a BGGM object (obtained from |
14 | | -#' [BGGM::var_estimate()]), or extracted posterior samples (obtained from |
15 | | -#' [stan_fit_convert()). |
| 13 | +#' (obtained from \code{\link{stan_gvar}}, a \code{BGGM} object (obtained from |
| 14 | +#' \code{\link[BGGM]{var_estimate}}, or extracted posterior samples (obtained from |
| 15 | +#' \code{\link{stan_fit_convert}}). |
16 | 16 | #' @param fit_b Fitted model object for Model B. This can be a tsnet_fit object |
17 | | -#' (obtained from [stan_gvar()]), a BGGM object (obtained from |
18 | | -#' [BGGM::var_estimate()]), or extracted posterior samples (obtained from |
19 | | -#' [stan_fit_convert()). |
20 | | -#' @param cutoff The percentage level of the test (default: 5\%) as integer. |
21 | | -#' @param dec_rule The decision rule to be used. Currently supports default "or" |
| 17 | +#' (obtained from \code{\link{stan_gvar}}, a \code{BGGM} object (obtained from |
| 18 | +#' \code{\link[BGGM]{var_estimate}}, or extracted posterior samples (obtained from |
| 19 | +#' \code{\link{stan_fit_convert}}). |
| 20 | +#' @param cutoff The percentage level of the test (default: \code{5}) as integer. |
| 21 | +#' @param dec_rule The decision rule to be used. Currently supports default \code{"or"} |
22 | 22 | #' (comparing against two reference distributions) and "comb" (combining the |
23 | 23 | #' reference distributions). The use of "or" is recommended, as "comb" is less |
24 | 24 | #' stable. |
25 | 25 | #' @param n_draws The number of draws to use for reference distributions |
26 | | -#' (default: 1000). |
| 26 | +#' (default: \code{1000}). |
27 | 27 | #' @param comp The distance metric to use. Should be one of "frob" (Frobenius |
28 | 28 | #' norm), "maxdiff" (maximum difference), or "l1" (L1 norm) (default: |
29 | | -#' "frob"). The use of the Frobenius norm is recommended. |
| 29 | +#' \code{"frob"}). The use of the Frobenius norm is recommended. |
30 | 30 | #' @param return_all Logical indicating whether to return all distributions |
31 | | -#' (default: FALSE). Has to be set to TRUE for plotting the results. |
| 31 | +#' (default: \code{FALSE}). Has to be set to TRUE for plotting the results. |
32 | 32 | #' @param sampling_method Draw sequential pairs of samples from the posterior, |
33 | 33 | #' with certain distance between them ("sequential") or randomly from two |
34 | 34 | #' halves of the posterior ("random"). The "random" method is preferred to |
35 | 35 | #' account for potential autocorrelation between subsequent samples. Default: |
36 | | -#' "random". |
| 36 | +#' \code{"random"}. |
37 | 37 | #' @param indices A list of "beta" and "pcor" indices specifying which elements |
38 | | -#' of the matrices to consider when calculating distances. If NULL (default), |
| 38 | +#' of the matrices to consider when calculating distances. If \code{NULL} (default), |
39 | 39 | #' all elements of both matrices are considered. If provided, only the |
40 | 40 | #' elements at these indices are considered. If only one of the matrices |
41 | 41 | #' should have indices, the other one should be NULL. This can be useful if |
42 | 42 | #' you want to calculate distances based on a subset of the elements in the |
43 | 43 | #' matrices. |
44 | | -#' @param burnin The number of burn-in iterations to discard (default: 0). |
45 | | -#' @return A list (of class "compare_gvar") containing the results of the |
| 44 | +#' @param burnin The number of burn-in iterations to discard (default: \code{0}). |
| 45 | +#' @return A list (of class \code{compare_gvar}) containing the results of the |
46 | 46 | #' comparison. The list includes: |
47 | 47 | #' |
48 | 48 | #' \item{sig_beta}{Binary decision on whether there is a significant difference between the temporal networks of A and B} |
|
0 commit comments