Releases: kgoldfeld/simstudy
Releases · kgoldfeld/simstudy
simstudy 0.8.1
New features
- Added the ability to generate data from an empirical distribution by using new functions
genDataDensity
andaddDataDensity
. - The binary and binomial distributions can now accommodate a "log" link.
Minor fix
addCorGen
no 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
defData
anddefDataAdd
by
specifyingdist = "custom"
.
*addPeriods
now includes a new argumentperiodVec
that allows users to designate
specific measurement time periods using vector.
Minor fix
- Function
logisticCoefs
now correctly handles double dot notation.
simstudy 0.7.1
Breaking Changes
trtAssign
withratio=NULL
used to produce 0-index values but 1-indexed values ifratio
was 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
logisticCoefs
determines 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
blockExchangekMat
andblockDecayMat
. 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
genCorMat
to allow generation of cluster-specific correlation matrices in case one wants to induce variability in correlation across clusters.
Major fixes
- Overhauled function
addCorGen
to 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.
simstudy 0.2.1
- Add 'backports' for compatibility with R < 4.0
- Fix a bug on R < 4.0 in genOrdCat
- Current version is now only compatible with R version >= 3.3.0