You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**What changes are proposed in this pull request?**
* Adding functions to assist in constructing models `construct_model()`,
`reformulate2()` (similar to `stats::reformulate()` but adds backticks
around variable names with spaces in them), `bt()` (adds backtics to
variable as needed), and `bt_strip()` (removes backticks from character
variable names).
I also updated `ard_survey_svychisq()` to use `reformulate2()` instead
of `stats::reformulate()` which allows variable names with spaces in
them. Other instances of `stats::reformulate()` should also be updated
in the future.
The reason we're adding the constructors is because the full ARS
(Analysis Result Standard) requires that we begin with a data frame, and
these help us take a data frame, a response variable, and covariates to
construct complex models.
**Reference GitHub issue associated with pull request.** _e.g., 'closes
#<issue number>'_
closes#108
--------------------------------------------------------------------------------
Pre-review Checklist (if item does not apply, mark is as complete)
- [x] **All** GitHub Action workflows pass with a ✅
- [x] PR branch has pulled the most recent updates from master branch:
`usethis::pr_merge_main()`
- [x] If a bug was fixed, a unit test was added.
- [x] If a new `ard_*()` function was added, it passes the ARD
structural checks from `cards::check_ard_structure()`.
- [x] Code coverage is suitable for any new functions/features
(generally, 100% coverage for new code): `devtools::test_coverage()`
Reviewer Checklist (if item does not apply, mark is as complete)
- [ ] If a bug was fixed, a unit test was added.
- [ ] Code coverage is suitable for any new functions/features:
`devtools::test_coverage()`
When the branch is ready to be merged:
- [ ] Update `NEWS.md` with the changes from this pull request under the
heading "`# cardx (development version)`". If there is an issue
associated with the pull request, reference it in parentheses at the end
update (see `NEWS.md` for examples).
- [ ] **All** GitHub Action workflows pass with a ✅
- [ ] Approve Pull Request
- [ ] Merge the PR. Please use "Squash and merge" or "Rebase and merge".
---------
Co-authored-by: Davide Garolini <dgarolini@gmail.com>
0 commit comments