Coder Social home page Coder Social logo

rinca's People

Watchers

 avatar  avatar  avatar  avatar

rinca's Issues

ideas

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).
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
Exp(lambda) with some more or less realistic distribution.
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!

bootstrap

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

method dispatch S3

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.