| Title: | Client Utilities for Partition-of-Unity Copula Modelling in DataSHIELD |
|---|---|
| Description: | Provides client-side helper functions for interacting with the dsPUcopula DataSHIELD server package. The helpers wrap the remote procedures for fitting partition-of-unity copula models, estimating marginal distributions, simulating copula-based samples and retrieving synthetic data in a privacy-preserving manner. |
| Authors: | Andreas Mändle [aut, cre] |
| Maintainer: | Andreas Mändle <[email protected]> |
| License: | MIT + file LICENSE |
| Version: | 0.1.0 |
| Built: | 2026-05-20 10:35:04 UTC |
| Source: | https://github.com/bips-hb/dsPUcopulaClient |
Computes marginal distribution estimates for the variables identified by the
server-side symbol x through the estimateMarginalsDS helper. The
result is stored remotely as marginals_list for later reuse.
ds.estimateMarginals(x, datasources = NULL, method = "ecdf")ds.estimateMarginals(x, datasources = NULL, method = "ecdf")
x |
|
datasources |
Optional list of DataSHIELD connections as returned by
|
method |
|
Invisibly returns TRUE once the remote object has been created.
## Not run: ds.estimateMarginals("PU_copula_model$data") ## End(Not run)## Not run: ds.estimateMarginals("PU_copula_model$data") ## End(Not run)
Creates or replaces the PU_copula_model object in the connected
DataSHIELD sessions by delegating to the server-side fitPUcopulaDS
function.
ds.fitPUcopula( data, driver_strength_factor = 0.5, bin_size = 3, datasources = NULL, ... )ds.fitPUcopula( data, driver_strength_factor = 0.5, bin_size = 3, datasources = NULL, ... )
data |
|
driver_strength_factor |
|
bin_size |
|
datasources |
Optional list of DataSHIELD connections. When omitted the
currently active connections obtained via |
... |
Additional arguments passed through to the server-side
|
Invisibly returns TRUE once the remote object has been created.
## Not run: ds.fitPUcopula(data = "D", driver_strength_factor = 0.6, bin_size = 4) ## End(Not run)## Not run: ds.fitPUcopula(data = "D", driver_strength_factor = 0.6, bin_size = 4) ## End(Not run)
Aggregates the synthetic observations generated by the server-side
generateSyntheticDS function and returns them to the client.
ds.generateSynthetic(n, datasources = NULL)ds.generateSynthetic(n, datasources = NULL)
n |
|
datasources |
Optional list of DataSHIELD connections to use. |
A data frame with n rows containing the synthesised observations.
## Not run: synth <- ds.generateSynthetic(500) ## End(Not run)## Not run: synth <- ds.generateSynthetic(500) ## End(Not run)
Generates a simulated sample of size n from the copula model previously
stored in PU_copula_model. The simulated uniform scores are kept on the
server-side as PU_copula_model_u_sims_clientcode.
ds.simulateCopula(n, datasources = NULL)ds.simulateCopula(n, datasources = NULL)
n |
|
datasources |
Optional list of DataSHIELD connections to use. |
Invisibly returns TRUE once the simulated sample has been stored on the
server.
## Not run: ds.simulateCopula(1000) ## End(Not run)## Not run: ds.simulateCopula(1000) ## End(Not run)