Skip to content

Commit

Permalink
fix merge
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Thorson committed Dec 30, 2024
1 parent f404ee6 commit e194f54
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Imports:
Matrix,
sem,
igraph,
RTMB
RTMB,
ggraph,
grid,
methods
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
option
* Adding `convert_equations` to extend `sem::specifyEquations` and simplify
specification for large models
* Adding argument `prior_negloglike` as interface to specify Bayesian priors
and/or likelihood penalties

# dsem 1.3.0

Expand Down
5 changes: 5 additions & 0 deletions R/dsem.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@
#' while covs=c("x1", "x2") specifies the variance of x1 and the variance of x2 but not their covariance.
#' These same covariances can be added manually via argument `sem`, but using argument `covs` might
#' save time for models with many variables.
#' @param prior_negloglike A user-provided function that takes as input the vector of fixed effects out$obj$par
#' returns the negative log-prior probability. For example
#' \code{prior_negloglike = function(par) -1 * dnorm( par[1], mean=0, sd=0.1, log=TRUE)}
#' specifies a normal prior probability
#' for the for the first fixed effect with mean of zero and logsd of 0.1
#' @param control Output from \code{\link{dsem_control}}, used to define user
#' settings, and see documentation for that function for details.
#'
Expand Down
7 changes: 7 additions & 0 deletions man/dsem.Rd

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

0 comments on commit e194f54

Please sign in to comment.