Any views expressed within media held on this service are those of the contributors, should not be taken as approved or endorsed by the University, and do not necessarily reflect the views of the University in respect of any particular issue.

main

main

Gillian Raab

Workshop for Research Data Scotland 20/6/2024

Understanding the synthpop package

Aims of the workshop

  • To use synthpop to create a low-fidelity synthetic data set
  • To understand some of the  components of the synthetic data object (of class synds) created by the function syn()
  • Exporting data and statistical disclosure control for synthetic data
  • To learn about some of the parameters of the function syn() for creating synthetic data
  • To get general advice on using synthpop to create synthetic data and the difficulties some data sets may pose.

Materials

 

Session  What to do (in brief) Powerpoints Data Sample code
First session

Try NOT to use the sample code

Use powerpoint for guidance and hints

  • Make a directory for this course and save the bike1 data set to it
  • Read it in and explore it with a few tables and plots
  • Create a low-fidelity synthetic data set from it
  • Examine and try to understand the synthetic data object you will create
workshop.pptx bike1.Rdata   low_fidelity.r
exporting your data to other systems
  • use write.syn to save data
  • use sdc() for ststistical disclosure control (sdc) of your synthetic data
  • maybe utility measures (Bad)
more_low_fidelity.pptx more_low_fidelity.R
Not really part of this course
  • can answer questions and maybe introduce a few ideas
high_fidelity.pptx high_fidelity.R
css.php

Report this page

To report inappropriate content on this page, please use the form below. Upon receiving your report, we will be in touch as per the Take Down Policy of the service.

Please note that personal data collected through this form is used and stored for the purposes of processing this report and communication with you.

If you are unable to report a concern about content via this form please contact the Service Owner.

Please enter an email address you wish to be contacted on. Please describe the unacceptable content in sufficient detail to allow us to locate it, and why you consider it to be unacceptable.
By submitting this report, you accept that it is accurate and that fraudulent or nuisance complaints may result in action by the University.

  Cancel