Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

RE: st: RE: RE: Encryption of data


From   "Maarten Buis" <[email protected]>
To   <[email protected]>
Subject   RE: st: RE: RE: Encryption of data
Date   Wed, 13 Jun 2007 17:17:05 +0200

Can't you do that like this?

*------------ begin example -----------
tempfile a b
sysuse auto, clear
gen key = uniform()

preserve
drop make
save `a'
restore

keep make key
sort key
save `b'

use `a', clear
sort key
merge key using `b'
*----------- end example ------------
(For more on how to use examples I sent to the Statalist, see
http://home.fsw.vu.nl/m.buis/stata/exampleFAQ.html )

So what you give others is a dataset with a key that is a 
random draw from a uniform distribution, and if you need the 
data you wanted to hide you can merge that data back in by 
using that key.

Hope this helps,
Maarten

-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology 
Vrije Universiteit Amsterdam 
Boelelaan 1081 
1081 HV Amsterdam 
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434 

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Hendri Adriaens
Sent: woensdag 13 juni 2007 17:00
To: [email protected]
Subject: RE: st: RE: RE: Encryption of data

Dear David,

> We sociologists (and others) make a distinction between
> anonymity and 
> confidentiality.  To make a dataset anonymous, it would seem
> you need 
> to remove the variable that has the names.

Thanks for your concern, but it doesn't involve names, these are removed
anyway. I need the variable to link the data to other datasets. But it's
enough to encrypt the variable in a one-way manner. I can do that for both
datasets, get anonymity and am able to link. I cannot link and then destroy
the variable, we will need it later.

Best regards,
-Hendri.



*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index