Difference between revisions of "Training health impact"
From Testiwiki
(data added) |
(code cleaned) |
||
Line 12: | Line 12: | ||
name="answer" | name="answer" | ||
label="Run code" | label="Run code" | ||
+ | graphics="1" | ||
include=" | include=" | ||
page:Object-oriented_programming_in_Opasnet|name:answer| | page:Object-oriented_programming_in_Opasnet|name:answer| | ||
Line 17: | Line 18: | ||
page:Training_health_impact|name:formula | page:Training_health_impact|name:formula | ||
" | " | ||
+ | variables="name:population|description:What is the size of the population|default:100000" | ||
> | > | ||
Line 24: | Line 26: | ||
library(OpasnetBaseUtils) | library(OpasnetBaseUtils) | ||
− | |||
out <- make.ovariable( | out <- make.ovariable( | ||
− | data = | + | data = fetch("Op_en5675"), |
formula = formula.Op_en5675, | formula = formula.Op_en5675, | ||
dependencies = dependencies.Op_en5675) | dependencies = dependencies.Op_en5675) | ||
− | + | ||
print(out) | print(out) | ||
plot(out) | plot(out) | ||
Line 49: | Line 50: | ||
name="formula" | name="formula" | ||
label="Initiate functions" | label="Initiate functions" | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
> | > | ||
− | + | dependencies.Op_en5675 <- list( | |
− | + | exposure = "Op_en5674", # formula.Op_en5674(dependencies.Op_en5674), # Training exposure | |
− | + | erf = data.frame(Unit = "RR per ug/m3", Result = 1.5), | |
− | + | population = population, | |
− | + | background = 100 / 100000 # cases per 100000 person-years | |
− | + | ) | |
− | |||
− | |||
− | |||
− | |||
− | + | formula.Op_en5675 <- function(x) { | |
− | + | population <- make.ovariable(x$population) | |
− | + | background <- make.ovariable(x$background) | |
+ | exposure <- make.ovariable(fetch(x$exposure)) | ||
+ | erf <- make.ovariable(x$erf) | ||
+ | cases <- population * background * exp(exposure * log(erf)) | ||
+ | return(cases) | ||
+ | } | ||
</rcode> | </rcode> |
Revision as of 20:59, 21 May 2012
This page is a variable.
The page identifier is Op_en5675 |
---|
Moderator:Jouni (see all) |
This page is a stub. You may improve it into a full page, and then a rating bar will appear here. |
Upload data
|
Contents
Question
What is the health impact in the Training assessment?
Answer
Rationale
Data
Obs | Year | Unit | Result | Description |
---|---|---|---|---|
1 | 2012 | cases/year | 10 - 100 | |
2 | 2020 | cases/year | 15 - 150 |
Formula
See also
Help pages | Wiki editing • How to edit wikipages • Quick reference for wiki editing • Drawing graphs • Opasnet policies • Watching pages • Writing formulae • Word to Wiki • Wiki editing Advanced skills |
Training assessment (examples of different objects) | Training assessment • Training exposure • Training health impact • Training costs • Climate change policies and health in Kuopio • Climate change policies in Kuopio |
Methods and concepts | Assessment • Variable • Method • Question • Answer • Rationale • Attribute • Decision • Result • Object-oriented programming in Opasnet • Universal object • Study • Formula • OpasnetBaseUtils • Open assessment • PSSP |
Terms with changed use | Scope • Definition • Result • Tool |
Keywords
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>