Training exposure: Difference between revisions
Jump to navigation
Jump to search
(code cleaned but something wrong with formula: NAs in Result) |
(updated to reflect the new functions) |
||
| Line 13: | Line 13: | ||
label="Run code" | label="Run code" | ||
graphics="1" | graphics="1" | ||
include=" | include="page:Opasnet_(R_library)|name:answer" | ||
> | > | ||
cat("Initiation successful. Now starting the model.\n") | cat("Initiation successful. Now starting the model.\n") | ||
out <- make.ovariable( | out <- make.ovariable( | ||
data = fetch("Op_en5674"), | data = fetch("Op_en5674"), | ||
formula = formula.Op_en5674, | formula = formula.Op_en5674, | ||
dependencies = dependencies.Op_en5674) | dependencies = dependencies.Op_en5674 | ||
) | |||
print(out) | out | ||
print(out, iter = 1:5) | |||
plot(out) | plot(out) | ||
| Line 49: | Line 44: | ||
name="formula" | name="formula" | ||
label="Initiate functions" | label="Initiate functions" | ||
include="page:Opasnet_(R_library)|name:answer" | |||
graphics="1" | |||
> | > | ||
microenvironment.concentration <- data.frame( | |||
Microenvironment = c("Home", "Other"), | |||
Unit = "ug/m3", | |||
Result = c(1, 2) | |||
) | |||
microenvironment.time <- data.frame( | |||
Microenvironment = c("Home", "Other"), | |||
Unit = "fraction", | |||
Result = c(0.7, 0.3) | |||
) | ) | ||
dependencies.Op_en5674 <- data.frame( | |||
Name = "", | |||
Identifier = "", | |||
Direction = "", | |||
Result = c("microenvironment.concentration", "microenvironment.time") | |||
) | |||
formula.Op_en5674 <- function(x) { | formula.Op_en5674 <- function(x) { | ||
out <- make.ovariable(fetch(x[1, "Result"])) * make.ovariable(fetch(x[2, "Result"])) | |||
out <- tapply(out, out@sample[c("Iter", "Unit")], sum) | out <- tapply(out, out@sample[c("Iter", "Unit")], sum) | ||
return(out) | return(out) | ||
Revision as of 06:09, 26 May 2012
| Moderator:Jouni (see all) |
| This page is a stub. You may improve it into a full page. |
| Upload data
|
Question
What is the exposure in the Training assessment?
Answer
Rationale
Data
| Obs | Year | Unit | Result | Description |
|---|---|---|---|---|
| 1 | 2012 | ug/m3 | 1 - 2 | |
| 2 | 2020 | ug/m3 | 10 - 11 |
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>