Recent Releases of simstudy
simstudy - 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.
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld almost 2 years ago
simstudy - 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.
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld about 2 years ago
simstudy - 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.
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld over 2 years ago
simstudy - Version 0.7.0
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld almost 3 years ago
simstudy - 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
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld over 3 years ago
simstudy - simstudy 0.5.1
Minor fixes
- Fixed bug in
trtAssign
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld over 3 years ago
simstudy - 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.
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld over 4 years ago
simstudy - 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".
Scientific Software - Peer-reviewed
- R
Published by kgoldfeld over 4 years ago
simstudy - simstudy 0.2.2
- Improve documentation and vignettes.
Scientific Software - Peer-reviewed
- R
Published by assignUser over 5 years ago
simstudy - 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
Scientific Software - Peer-reviewed
- R
Published by assignUser over 5 years ago
simstudy - simstudy 0.2.0
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:
- the release version https://kgoldfeld.github.io/simstudy/
- and development version https://kgoldfeld.github.io/simstudy/dev
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.
Scientific Software - Peer-reviewed
- R
Published by assignUser over 5 years ago
simstudy - simstudy 0.1.16
- 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.
Scientific Software - Peer-reviewed
- R
Published by assignUser almost 6 years ago
simstudy - simstudy 0.1.12
- Fixed genCorFlex and addMultiFac to accommodate bug fixes with package data.table
Scientific Software - Peer-reviewed
- R
Published by assignUser almost 6 years ago
simstudy - simstudy 0.1.13
- 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.
Scientific Software - Peer-reviewed
- R
Published by assignUser almost 6 years ago
simstudy - simstudy 0.1.14
- 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.
Scientific Software - Peer-reviewed
- R
Published by assignUser almost 6 years ago
simstudy - simstudy 0.1.15
- 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
Scientific Software - Peer-reviewed
- R
Published by assignUser almost 6 years ago