BUG FIX
- Corrected quantile computation for Bernoulli random variables.
BUG FIX
- Fixed bug in link_setup when no links provided
NEW FEATURES
- Allow for fitting of t-distributions
NEW FEATURES
-
We now allow for specification of only certain link functions.
-
Added
link()
to obtain link functions fromcausl_family
andcausl_cop
objects.
NEW FEATURES
-
Introduced
causl_model()
andrfrugal()
functions, to create a causal model---an object that can be used to simulate from or, in future, fit a frugally parameterized model. -
Added vignette showing how to add a custom family to simulation methods.
CHANGES
-
rfrugalParam
calls new functionrfrugal
to simulate data. -
Redundant argument
seed
removed fromrfrugalParam
. Argumentcareful
moved tocontrol
. -
Other
control
arguments removed:trace
,warn
,max_wt
. -
control
argument removed fromsim_inversion()
andsim_rejection()
. -
"multi_copula"
changed to"inversion_mv"
.
NEW FEATURES
- Introducing ability to simulate from a multivariate copula using the
inversion method. Choose
method = "multi_copula"
.
NEW FEATURES
- Made it possible to use a custom distribution to simulate via an object of
class
causl_family
.
CHANGES
-
Began migration of
univarDens()
toglm_dens()
. -
Changed name
dGaussDiscCop2()
todGaussDiscCop()
. -
Made changes to
fitCausal
, including renaming asfit_causl
and removing some arguments from function and splitting off identification of discrete variables. -
Modified
par2
in simulations for t-distribution todf
.
BUG FIXES
-
Fixed bug in discrete
causal_family
types. -
Fixed bug in
pair_copula_setup()
. -
Added
link
to output frombinomial_causl_fam
.
NEW FEATURES
- Added log-link for binomial family
CHANGES
-
Suppressed messages in tests
-
Edited to remove quantiles from simulated data under inversion method
CHANGES
- Added
process_prespecified
CHANGES
-
Minor fix to
process_family
-
New test for plasmode simulation with one pregenerated variable.
CHANGES
- Fixed bug in plasmode dataset generation that caused failure if only one variable was used.
CHANGES
- Further reorganization, mostly to export additional functions.
CHANGES
process_inputs
and its derivatives further edited for compatibility withsurvivl
package.
CHANGES
process_inputs()
function now substantially reorganized. Uses various subsidiary functions to carry out its work.
BUG FIXES
- Fixed minor bug in
is_categorical()
NEW FEATURES
-
rfrugalParam()
now allows for 'plasmode' simulation. That is, one can add adata.frame
of variablesdat
that acts as a collection of pre-generated covariates. -
New vignette 'Plasmode' gives instructions on how to use this feature.
NEW FEATURES
-
Added a
NEWS.md
file! -
Categorical and ordinal variables are now implemented for simulation with
rfrugalParam()
(provided that the now defaultmethod="inversion"
is used). The parameterizations for categorical variables use the logit-contrasts of each level with the baseline-level; for ordinal variables it uses the logit of successive cumulative probabilities. In other words, it uses$\log P(X \leq i)/P(X > i)$ for each$i = 1,\ldots,l-1$ where there are$l$ levels. -
Added a vectorized
cumsum_mat
function inRcpp
, that acts on the rows of a matrix.
CHANGES
-
rfrugalParam()
now hasmethod="inversion"
as the default. The much slowermethod="rejection"
is kept only for backwards compatibility. -
Some functions (
rescaleVar
,rescaleCop
,sim_CopVal
) have had their old names deprecated in favour of snake case versions (rescale_var
,rescale_cop
,sim_copula
). In addition the dataframecopulaVals
has been replaced bycopula_vals
. -
link_hack
has been renamed tolink_apply
.