Skip to content

Releases: kgoldfeld/simstudy

simstudy 0.3.0

06 Nov 13:13

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

Choose a tag to compare

  • Improve documentation and vignettes.

simstudy 0.2.1

07 Oct 16:00

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

simstudy 0.2.0

06 Oct 16:21

Choose a tag to compare

Deprecated Functions

  • Moved genCorOrdCat's functionality into genOrdCat. genCorOrdCat is now
    deprecated.
  • Renamed catProbs to genCatFormula for naming consistency. catProbs is now
    deprecated.

New features

  • Introduced a new system for formula definitions and completely reworked the
    underlying code. See vignette "Dynamic Data Definition".
  • The new function genMixFormula generates mixture formulas from different
    inputs.
  • Some simstudy functions now produce custom errors and warnings. Eventually
    all conditions will be replaced by the new system to make error handling
    easier for the user.
  • Added new vignettes.
  • Created documentation pages for:

Minor improvements and fixes

  • genCatFormula now warns if an additional category is created or probabilities
    are normalized.
  • Fixed bug in trtAssign related new ratio argument.
  • Fixed bug in trtAssign when strata had count of one.
  • defData now also checks the first row in the definition table for validity.

simstudy 0.1.16

09 Aug 22:15

Choose a tag to compare

  • Added "mixture" distribution that takes a value from an existing column with a specified probability.
  • Modified function trtAssign to improve speed performance of stratified sampling with very large numbers of strata.
  • Add argument "ratio" to function trtAssign to allow users to specify more than 1:1 randomization.

simstudy 0.1.15

09 Aug 22:09

Choose a tag to compare

  • Added function trimData (that uses new rcpp function clipVec) to clip or truncate a longitudinal data set after a certain event has occurred.
  • Fixed bug in addMarkov, added trimvalue argument to use trimData function
  • Added trimvalue argument in genMarkov

simstudy 0.1.14

09 Aug 22:09

Choose a tag to compare

  • Added functions genMarkov and addMarkov to create data.table with (or add to existing data.table) individual chains of Markov processes.
  • Added function genNthEvent to create data.table with binary event outcome in a longitudinal setting.
  • Updated function genCluster so that cluster size can be specified as an integer, and will be constant across all clusters.
  • Updated function addPeriods that period name can be specified.
  • Updated function trtStepWedge so that a transition period can be included.
  • Fixed bug in function delColumns related to multiple keys.

simstudy 0.1.13

09 Aug 22:10

Choose a tag to compare

  • Added negative binomial distribution as an option to function iccRE
  • Fixed function genCorOrdCat so that it can accept user-specified correlation matrix
  • Added function trtStepWedge to generate treatment assignment for a stepped-wedge design cluster randomized trial.

simstudy 0.1.12

09 Aug 22:11

Choose a tag to compare

  • Fixed genCorFlex and addMultiFac to accommodate bug fixes with package data.table