synthetic: Create fully synthetic longitudinal dataset.

Description Usage Arguments Value

View source: R/synthetic.R

Description

When data privacy is the major issue of time-varing data sharing, we consider this fully synthetic version of DataSifter II. It obfuscate longitudinal data by generating random numbers within the neighborhood of a longitudinal variable at a given visit time. Thus, the within-subject covariance structure might be changed by this process.

Usage

1
synthetic(data, lnames, timevar, ID, N)

Arguments

data

A data frame in long format.

lnames

A vector of longitudinal variables names.

timevar

The time variable or cluster varaible name.

ID

Name of the ID variable in the dataset.

N

The number of closest records to be considered as neighborhood.

Value

Fully synthetic Sifted data.


SOCR/DataSifterII documentation built on Dec. 15, 2021, 10:29 a.m.