Releases: kgoldfeld/simstudy
Releases · kgoldfeld/simstudy
simstudy 0.9.0
New features
- Added an argument
na.rmto the functionsgenDataDensityandaddDataDensity. If set toFALSE,
the generated data will include missing values at the same rate as the distribution data. - Added new functions
grouped()andscenario_list()to support the creation of parameter
scenarios.grouped()allows multiple variables to be treated as a unit when defining scenarios,
andscenario_list()generates lists of parameter combinations while respecting grouped variables.
Minor fixes
- Added testthat tests to provide 100% code coverage
- Fixed some minor bugs
simstudy 0.8.1
New features
- Added the ability to generate data from an empirical distribution by using new functions
genDataDensityandaddDataDensity. - The binary and binomial distributions can now accommodate a "log" link.
Minor fix
addCorGenno longer requires all clusters to have the same size when using the rho and corstr arguments to define the correlation.- Fixed an issue that prevented functions defined outside the global namespace from being referenced in
defData.
simstudy 0.8.0
New features
- added the option to specify a customized distribution in
defDataanddefDataAddby
specifyingdist = "custom".
*addPeriodsnow includes a new argumentperiodVecthat allows users to designate
specific measurement time periods using vector.
Minor fix
- Function
logisticCoefsnow correctly handles double dot notation.
simstudy 0.7.1
Breaking Changes
trtAssignwithratio=NULLused to produce 0-index values but 1-indexed values ifratiowas set. This was adjusted so now both versions produce 0-indexed values. This is a potentially breaking change for existing scripts that use the generated treatment values while assuming the old behavior (e.g. using hardcoded values to filter).
New features
- Function
logisticCoefsdetermines the intercept and treatment/exposure
parameter for a data generating process (based on a logistic regression model)
that has a specific target population prevalence of a binary outcome, and an
option to target a risk ratio, risk difference, or AUC.
Major fix
- Data generation speed has been improved for very large data sets with many
variables.
Version 0.7.0
v0.7.0 Increment version number to 0.7.0.9000
simstudy 0.6.0
New features
- Added function
blockExchangekMatandblockDecayMat. Users can now generate correlation matrices that can accommodate clustered observations over time where the within-cluster correlation in the same time period can be different from the within-cluster correlation across time periods. - Updated function
genCorMatto allow generation of cluster-specific correlation matrices in case one wants to induce variability in correlation across clusters.
Major fixes
- Overhauled function
addCorGento make it more flexible. It can now handle cluster-dependent data, and not just time-dependent data. In addition,
performance has been dramatically improved.
Minor fixes
- Fixed bug in
genSpline
simstudy 0.5.1
Minor fixes
- Fixed bug in
trtAssign
simstudy 0.4.0
New features
- genOrdCat now supports non-proportional odds
- Added functions defRepeat and defRepeatAdd to facilitate the definition of multiple variables that share identical data definitions.
Minor improvements and fixes
- Fixed bug resulting from rounding error when specifying probabilities for 'categorical' distributions.
simstudy 0.3.0
New features
- You can now use non-scalar variables with double-dot notation. See the Dynamic Data Definition Vignette.
- The 'categorical' distribution now supports the variance parameter to introduce categories other than 1...n.
- You can now use [trtAssign()] as a distribution with [defData()].
Minor improvements and fixes
- Added CITATION
- genData now warns that a set 'id' parameter will override previously defined 'id' names from the data definition.
- genData now handles NULL as 'id' value in data definitions (e.g. when definitions are not created via defData etc.) by defaulting to 'id'.
- Fix an error in genOrdCat when only a single adjustment variable is given but
more than one new category will be created. - Fix a bug where ..variables did not work within a function using the
dist="beta".
simstudy 0.2.2
- Improve documentation and vignettes.