Skip to content

Commit 3f9010b

Browse files
Keith GoldfeldKeith Goldfeld
authored andcommitted
Preparing for resubmission
1 parent 7949e41 commit 3f9010b

File tree

5 files changed

+15
-10
lines changed

5 files changed

+15
-10
lines changed

DESCRIPTION

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Type: Package
22
Package: simstudy
33
Title: Simulation of Study Data
4-
Version: 0.9.0.9000
5-
Date: 2025-12-07
4+
Version: 0.9.1
5+
Date: 2025-12-10
66
Authors@R:
77
c(person(given = "Keith",
88
family = "Goldfeld",

README.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ dd
6363

6464
## Contributing & Support
6565

66-
If you find a bug or need help, please file an issue with a [reprex](https://www.tidyverse.org/help/){target="_blank"} on [Github](https://github.com/kgoldfeld/simstudy/issues){target="_blank"}. We are happy to accept contributions to simstudy. More information on how to propose changes or fix bugs can be found [here](https://kgoldfeld.github.io/simstudy/CONTRIBUTING.html){target="_blank"}.
66+
If you find a bug or need help, please file an issue with a [reprex](https://tidyverse.org/help/){target="_blank"} on [Github](https://github.com/kgoldfeld/simstudy/issues){target="_blank"}. We are happy to accept contributions to simstudy. More information on how to propose changes or fix bugs can be found [here](https://kgoldfeld.github.io/simstudy/CONTRIBUTING.html){target="_blank"}.
6767

6868
## Code of Conduct
6969

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ dd
116116
## Contributing & Support
117117

118118
If you find a bug or need help, please file an issue with a
119-
<a href="https://www.tidyverse.org/help/" target="_blank">reprex</a> on
119+
<a href="https://tidyverse.org/help/" target="_blank">reprex</a> on
120120
<a href="https://github.com/kgoldfeld/simstudy/issues"
121121
target="_blank">Github</a>. We are happy to accept contributions to
122122
simstudy. More information on how to propose changes or fix bugs can be

cran-comments.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
## Submission 20251005
1+
## Submission 20251214
22

3-
This is a submission of version 0.9.0
3+
This is a resubmission for version 0.9.1
44

5-
Developed with R Version 4.5.1
5+
Developed with R Version 4.5.2
66

7-
I did not get any notes from check_win_devel.
7+
The test failure reported on CRAN (MKL) was caused by a numerical rounding issue
8+
leading to a non-symmetric correlation matrix. This has been fixed by ensuring
9+
correlation matrices are properly symmetrized.
10+
11+
Checks using devtools::check(remote = TRUE, manual = TRUE) and
12+
devtools::check_win_devel() pass.

vignettes/logisticCoefs.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ genData(500000, d1a)[, mean(y)]
114114

115115
#### Finding the intercept
116116

117-
Where did those two intercepts come from? The [paper](https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-023-01836-5){target="_blank"} by Peter Austin describes an iterative bisection procedure that takes a distribution of covariates and a set of coefficients to identify the intercept coefficient that yields the target marginal proportion or prevalence.
117+
Where did those two intercepts come from? The [paper](https://link.springer.com/article/10.1186/s12874-023-01836-5){target="_blank"} by Peter Austin describes an iterative bisection procedure that takes a distribution of covariates and a set of coefficients to identify the intercept coefficient that yields the target marginal proportion or prevalence.
118118

119-
The general idea of the algorithm is to try out series of different intercepts in an intelligent way that ends up at the right spot. (If you want the details for the algorithm, take a look at the [paper](https://bmcmedresmethodol.biomedcentral.com/articles/10.1186/s12874-023-01836-5){target="_blank"}.) The starting search range is pre-defined (we've used -10 to 10 for the intercept), and we start with an value of 0 for the initial intercept and simulate a large data set (the paper uses 1 million observations, but 100,000 seems to work just fine) and record the population prevalence. If we've overshot the target prevalence, we turn our attention to the range between -10 and 0, taking the average, which is -5. Otherwise, we focus on the range between 0 and 10. We iterate this way, choosing the range we need to focus on and setting the intercept at the mid-point (hence the name *bisection*). The algorithm will converge pretty quickly on the value of the intercept that gives the target population prevalence for the underlying covariate distribution and coefficient assumptions.
119+
The general idea of the algorithm is to try out series of different intercepts in an intelligent way that ends up at the right spot. (If you want the details for the algorithm, take a look at the [paper](https://link.springer.com/article/10.1186/s12874-023-01836-5){target="_blank"}.) The starting search range is pre-defined (we've used -10 to 10 for the intercept), and we start with an value of 0 for the initial intercept and simulate a large data set (the paper uses 1 million observations, but 100,000 seems to work just fine) and record the population prevalence. If we've overshot the target prevalence, we turn our attention to the range between -10 and 0, taking the average, which is -5. Otherwise, we focus on the range between 0 and 10. We iterate this way, choosing the range we need to focus on and setting the intercept at the mid-point (hence the name *bisection*). The algorithm will converge pretty quickly on the value of the intercept that gives the target population prevalence for the underlying covariate distribution and coefficient assumptions.
120120

121121
In the current implementation in `simstudy`, the intercept is provided by a simple call to `logisticCoefs`. Here are the calls for the two sets of definitions in definition tables *d1* and *d2*.
122122

0 commit comments

Comments
 (0)