Skip to content

Releases: kgoldfeld/simstudy

simstudy 0.8.1

29 Jul 18:48
Compare
Choose a tag to compare

New features

  • Added the ability to generate data from an empirical distribution by using new functions genDataDensity and addDataDensity.
  • 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

15 May 18:31
Compare
Choose a tag to compare

New features

  • added the option to specify a customized distribution in defData and defDataAdd by
    specifying dist = "custom".
    *addPeriods now includes a new argument periodVec 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

24 Nov 21:08
Compare
Choose a tag to compare

Breaking Changes

  • trtAssign with ratio=NULL used to produce 0-index values but 1-indexed values if ratio 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

06 Jun 16:13
Compare
Choose a tag to compare
v0.7.0

Increment version number to 0.7.0.9000

simstudy 0.6.0

19 Feb 02:03
Compare
Choose a tag to compare

New features

  • Added function blockExchangekMat and blockDecayMat. 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

04 Oct 15:21
Compare
Choose a tag to compare

Minor fixes

  • Fixed bug in trtAssign

simstudy 0.4.0

23 Jan 15:39
Compare
Choose a tag to compare

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

06 Nov 13:13
Compare
Choose a tag to compare

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

26 Oct 15:18
529ee03
Compare
Choose a tag to compare
  • Improve documentation and vignettes.

simstudy 0.2.1

07 Oct 16:00
Compare
Choose a tag to compare
  • 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