BUG FIX
BUG FIX
NEW FEATURES
NEW FEATURES
We now allow for specification of only certain link functions.
Added link()
to obtain link functions from causl_family
and causl_cop
objects.
NEW FEATURES
Introduced causl_model()
and rfrugal()
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 function rfrugal
to simulate data.
Redundant argument seed
removed from rfrugalParam
. Argument careful
moved to control
.
Other control
arguments removed: trace
, warn
, max_wt
.
control
argument removed from sim_inversion()
and sim_rejection()
.
"multi_copula"
changed to "inversion_mv"
.
NEW FEATURES
method = "multi_copula"
.NEW FEATURES
causl_family
.CHANGES
Began migration of univarDens()
to glm_dens()
.
Changed name dGaussDiscCop2()
to dGaussDiscCop()
.
Made changes to fitCausal
, including renaming as fit_causl
and removing
some arguments from function and splitting off identification of discrete
variables.
Modified par2
in simulations for t-distribution to df
.
BUG FIXES
Fixed bug in discrete causal_family
types.
Fixed bug in pair_copula_setup()
.
Added link
to output from binomial_causl_fam
.
NEW FEATURES
CHANGES
Suppressed messages in tests
Edited to remove quantiles from simulated data under inversion method
CHANGES
process_prespecified
CHANGES
Minor fix to process_family
New test for plasmode simulation with one pregenerated variable.
CHANGES
CHANGES
CHANGES
process_inputs
and its derivatives further edited for compatibility with
survivl
package.CHANGES
process_inputs()
function now substantially reorganized. Uses various
subsidiary functions to carry out its work.BUG FIXES
is_categorical()
NEW FEATURES
rfrugalParam()
now allows for 'plasmode' simulation. That is, one can add
a data.frame
of variables dat
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 default method="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 in Rcpp
, that acts on the rows of
a matrix.
CHANGES
rfrugalParam()
now has method="inversion"
as the default. The much
slower method="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 dataframe copulaVals
has been replaced by
copula_vals
.
link_hack
has been renamed to link_apply
.