Chapter 5 Harmonisation with synthetic data
In this section we describe how to harmonise synthetic data on the client side. This assumes that you have used one of the previous methods to generate your synthetic data set.
In detail, the steps proposed are:
- Load the synthetic data into the session
- When happy, copy the code into Opal to generate the harmonised data
5.1 Getting set up
First some system level packages may need to be installed: On Debian / Ubuntu install either
libnode-dev, on Fedora use
## Installing package into '/home/vagrant/R/x86_64-pc-linux-gnu-library/4.0' ## (as 'lib' is unspecified)
## Using V8 engine 6.8.275.32-node.12
5.2 Do the work
##  "true"
Now we test our code against the whole dataset:
And pull the results into R for inspection:
If we are happy with the code, we can paste it directly into the Opal script interface so that it can be executed on the real data.