sdcTools / sdcMicro

sdcMicro
http://sdctools.github.io/sdcMicro/
79 stars 23 forks source link

what is individual risk measure rk? #350

Closed leodecarlo closed 3 months ago

leodecarlo commented 4 months ago

Hi,

I am reading the page here https://sdcpractice.readthedocs.io/en/latest/measure_risk.html#categorical-key-variables-and-frequency-counts .

In table 1, what is and how it is computed rk

print(head(sdcInitial@origData)) Residence Gender Educ Lstat Health Weights risk fk Fk 1 2 1 5 1 2 180 0.00542452 2 360 2 2 1 5 1 2 180 0.00542452 2 360 3 2 1 3 2 2 215 0.02509644 1 215 4 2 2 4 1 2 76 0.01256342 2 152 5 1 1 4 3 2 186 0.02824728 1 186 6 2 2 4 1 1 76 0.01256342 2 152

I don't get it from the turorial.

thanks Leonardo

thijsbenschop commented 4 months ago

Hi @leodecarlo,

this repo is for the development of the R package sdcMicro. The guide you're referring to is on this repo: https://github.com/ihsn/SDCPractice/. If you find errors, please create an issue there. For clarifications on the content of the guide, please start a discussion there: https://github.com/ihsn/SDCPractice/discussions

leodecarlo commented 3 months ago

thanks

matthias-da commented 3 months ago

"I don't get it from the tutorial."

You might consider to read https://link.springer.com/book/10.1007/978-3-319-50272-4

instead of a tutorial. The formula's behind are quite complicated (and in the book), but the result is in the first column. You can also access it through:

sdcInitial@risk$individual[,"risk"]

Best Matthias

leodecarlo commented 3 months ago

Thanks,

I did not know this reference , I knew just the paper https://www.jstatsoft.org/article/view/v067i04

I hope to find a way to get the book.

Leonardo

On Fri, Jun 7, 2024 at 5:42 PM Matthias Templ @.***> wrote:

"I don't get it from the tutorial."

You might consider to read https://link.springer.com/book/10.1007/978-3-319-50272-4

instead of a tutorial. The formula's behind are quite complicated (and in the book), but the result is in the first column. You can also access it through:

@.***$individual[,"risk"]

Best Matthias

— Reply to this email directly, view it on GitHub https://github.com/sdcTools/sdcMicro/issues/350#issuecomment-2155091837, or unsubscribe https://github.com/notifications/unsubscribe-auth/BBDPGBES5PJL4ACBSHRN3C3ZGHIF7AVCNFSM6AAAAABI4LHGJOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJVGA4TCOBTG4 . You are receiving this because you were mentioned.Message ID: @.***>