Skip to content

Commit

Permalink
Merge pull request #161 from sfcheung/devel
Browse files Browse the repository at this point in the history
0.10.4.24: Added root finding ("ur"), fixed some bugs, and makes the search more likely to succeed.
  • Loading branch information
sfcheung authored Jun 1, 2024
2 parents ca0a5d4 + c588256 commit c30c533
Show file tree
Hide file tree
Showing 46 changed files with 4,324 additions and 230 deletions.
10 changes: 6 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: semlbci
Title: Likelihood-Based Confidence Interval in Structural Equation Models
Version: 0.10.4
Version: 0.10.4.24
Authors@R:
c(
person(given = "Shu Fai",
Expand Down Expand Up @@ -28,7 +28,7 @@ License: GPL-3
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Suggests:
testthat (>= 3.0.0),
knitr,
Expand All @@ -44,8 +44,10 @@ Imports:
ggplot2,
ggrepel,
rlang,
pbapply
pbapply,
callr,
methods
VignetteBuilder: knitr
Config/testthat/parallel: true
Config/testthat/edition: 3
Config/testthat/start-first: semlbci_wn_mg_*
Config/testthat/start-first: semlbci_wn_mg_*, ur_ci_bound_ur*
6 changes: 6 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,16 @@ S3method(print,ci_order)
S3method(print,cibound)
S3method(print,semlbci)
export(check_sem_out)
export(ci_bound_ur)
export(ci_bound_ur_i)
export(ci_bound_wn_i)
export(ci_i_one)
export(ci_order)
export(gen_est_i)
export(gen_sem_out_userp)
export(gen_userp)
export(get_cibound)
export(get_cibound_status_not_0)
export(loglike_compare)
export(loglike_point)
export(loglike_quad_point)
Expand Down
107 changes: 107 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,110 @@
# semlbci 0.10.4.24

## New Feature

- Add the method `"ur"` for forming the
LBCI. It uses root finding without
derivatives. It is inefficient before
a model with equality constraint is
fitted in each iteration. However, it
may be able to find the bound for a
parameter when the `"wn"` method
cannot. It also supports robust LBCI
using Satorra (2000) chi-square
difference test. (0.10.4.2)

- Add `get_cibound_status_not_0()`. It
checks the status of each bound in
a `semlbci` object, and returns as
a list the `cibound` objects of
bounds with status not equal to zero.
For diagnostic purpose. (0.10.4.13)

## Miscellaneous

- Suppressed a harmless warning in a
test. (0.10.4.1)
- Added the option to use load balancing
when calling `semlbci()` with
`use_pbapply` set to `TRUE`. Enabled
by default. (0.10.4.3)
- Add error handlers in the output
of `set_constraints()` and
`ci_bound_wn_i()`. (0.10.4.4)
- Revised `ci_bound_wn_i()` and
`ci_bound_ur_i()` to make
sure the bound is a numeric object,
even if `NA`. (0.10.4.5)
- Speed up the examples of
`ci_bound_ur_i()` and `ci_bound_ur()`.
(0.10.4.7)
- Precompute the interval in
`ci_bound_ur_i()` before calling
`ci_bound_ur()`. (0.10.4.8)
- Use `kill()` instead of `close()`
in R sessions. (0.10.4.9)
- Add `bound_start` and `user_est`
to the precomputed interval.
(0.10.4.10)
- Modified several functions related to
`"ur"` method to have the option to
use an existing R session instead of
creating a new one. (0.10.4.11)
- Store the error in the search and
display it in the printout.
(0.10.4.12)
- Fixed some typos in doc.
(0.10.4.14)
- Made the test for the match between
`sem_out` and `semlbci_out` in
`semlbci()` more robust. (0.10.4.15)
- Fixed the order of the output when
`standardized` is `TRUE`. (0.10.4.16)
- Fixed a bug in `print.cibound()` when
the call is of the form `xxx::yyy()`.
(0.10.4.17)
- Added `fit_lb` and `fit_ub` arguments
to `ci_bound_wn_i()` for setting
the bounds. (0.10.4.18, 0.10.4.19)
- Fixed a bug with `std_lav()` for
models with only one factor.
(0.10.4.20)
- Added the `timeout` argument to
`ci_bound_wn_i()`, default to 300
(300 seconds or 5 minutes).
(0.10.4.21)
- In `print.semlbci()`, added
suggestions on what to do if some
bounds could not be found (0.10.4.22)
- Use whitespace instead of tab to
align the output of `print.cibound()`.
(0.10.4.23)
- Fixed a bug with `semlbci()`.
Intercepts are now automatically
skipped if `standardized` is `TRUE`.
(0.10.4.24)

## (Possibly) Breaking Changes

- This may or may not be a breaking
changes. The default of
`try_k_more_times` in `semlbci()` was
changed from 2 to 0. These additional
attempts rarely help but usually
increase processing time
unnecessarily. (0.10.4.6)
- Disabled further attempts in
the `wn` method by default
as they rarely help but they usually
increase
the processing time unnecessarily.
If necessary, one of the set of
attempts, successfully lower the
lower limits of variances can be
enabled again by setting `try_lb`
to `TRUE` when calling `semlbci()`
(0.10.4.6)

# semlbci 0.10.4

## New Feature
Expand Down
Loading

0 comments on commit c30c533

Please sign in to comment.