Skip to content

Commit

Permalink
fix notes and warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Thorson committed Oct 19, 2024
1 parent 39b8c4a commit 9b6089e
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 7 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ importFrom(methods,is)
importFrom(sem,sem)
importFrom(stats,"tsp<-")
importFrom(stats,.preformat.ts)
importFrom(stats,AIC)
importFrom(stats,logLik)
importFrom(stats,na.omit)
importFrom(stats,nlminb)
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# dsem 1.4.0

* Adding option for lower and upper bounds
* Adding `stepwise_selection` for automated stepwise model selection
* Adding `plot` option to use `ggraph` as alternative to previous `igraph`
option

# dsem 1.3.0

Expand Down
2 changes: 1 addition & 1 deletion R/dsem.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#' settings, and see documentation for that function for details.
#'
#' @importFrom TMB compile dynlib MakeADFun sdreport summary.sdreport
#' @importFrom stats sd .preformat.ts na.omit nlminb optimHess pnorm rnorm simulate time tsp<-
#' @importFrom stats AIC sd .preformat.ts na.omit nlminb optimHess pnorm rnorm simulate time tsp<-
#' @importFrom Matrix solve Cholesky
#' @importFrom sem sem
#' @importFrom igraph plot.igraph graph_from_data_frame with_sugiyama layout_
Expand Down
12 changes: 9 additions & 3 deletions R/stepwise_selection.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,15 @@
#'
#' @description Plot from a fitted \code{dsem} model
#'
#' @param model_options Output from \code{\link{dsem}}
#' @param y Not used
#' @param ... arguments passed to \code{\link[igraph]{plot.igraph}}
#' @param model_options character-vector containing sem elements
#' that could be included or dropped depending upon their
#' parsimony
#' @param model_shared character-vector containing sem elements
#' that must be included regardless of parsimony
#' @param quiet whether to avoid displaying progress to terminal
#' @param ... arguments passed to \code{\link{dsem}},
#' other than \code{sem} e.g., \code{tsdata}, \code{family}
#' etc.
#'
#' @details
#' This function conducts stepwise (i.e., forwards and backwards) model
Expand Down
13 changes: 10 additions & 3 deletions man/stepwise_selection.Rd

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

0 comments on commit 9b6089e

Please sign in to comment.