View source: R/synthesise_data.R
synthesise_data | R Documentation |
Allows the synthesis of data from marginal distributions obtained from a Trusted Research Environment (TRE)
synthesise_data(marginals, correlation_matrix = NULL, ...)
synthesize_data(marginals, correlation_matrix = NULL, ...)
marginals |
an object of class RESIDE |
correlation_matrix |
Correlation Matrix
see |
... |
Additional parameters currently none are used. |
This function will synthesise a dataset from marginals imported
using import_marginal_distributions
.
By default the dataset will not contain correlations,
however user specified correlations can be added using
the correlation_matrix
parameter,
see export_empty_cor_matrix
and
import_cor_matrix
for more details.
a data frame of simulated data
export_empty_cor_matrix
import_cor_matrix
## Not run:
marginals <- import_marginal_distributions()
df <- synthesise_data(marginals)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.