eribul / rinca Goto Github PK
View Code? Open in Web Editor NEWAnonymise INCA data
Anonymise INCA data
Generate functions to generate a fake but realistic data set. Then use these functions to genereta (on or more) fake datasets to be used for examples.
Take a real data set from INCA
substitute personnummer with random dates ~U(1900, currentYear - 18). This distribution can be changed and mayby updated later with something more realistic. The four last digits could just be randomly assigned U(1000, 9999) or similar. But it should be possible to update later with a more realistic numers (rules from Skatteverket or Wikipedia).Exp(lambda) with some more or less realistic distribution.
Diagnos date and/or similair could be keped but reordered randomly (to not conect dates with patients).
Later dates can be assigned from diadat + X where X
KON_VALUE could also be taken from original data (to keep the propoortion between the genders) but be shuffled.
Same with codes for hospital, clinics and PAT/CYT code.
LKF-codes must be kept to not confuse hospitals etc between regions.
Patients, doctors and monitor names should initialy be just removed. We might later generate fake names but that has low priority!
avs 3.4.3 i Advanced R kanske ger alernativ till logsplines?
# Select 6 bootstrap replicates
df[sample(nrow(df), 6, rep = T), ]
#> x y z
#> 2 1 5 b
#> 6 3 1 f
#> 5 3 2 e
#> 1 1 6 a
#> 6.1 3 1 f
#> 3 2 4 c
Package to generate random names:
http://cran.r-project.org/web/packages/randomNames/randomNames.pdf
Problem med Travis annars
koda om code-funktionen map method sispatch:
UseMethod() takes two arguments: the name of the generic function, and the argument to use for method dispatch. If you omit the second argument it will dispatch on the first argument to the function. There’s no need to pass any of the arguments of the generic to UseMethod() and you shouldn’t do so. UseMethod() uses black magic to find them out for itself.
Mayby later, inspiration for survival analysis data
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.