Training exposure: Difference between revisions

From Opasnet
Jump to navigation Jump to search
mNo edit summary
(content updated)
Line 10: Line 10:
== Answer ==
== Answer ==


Default run [http://en.opasnet.org/en-opwiki/index.php/Special:R-tools?id=m22i7AfzxByOBaaG m22i7AfzxByOBaaG]
<rcode embed=1 graphics=1>
 
library(OpasnetUtils)
library(ggplot2)
 
objects.latest("Op_en5674", code_name = "initiate")
exposure
exposure <- EvalOutput(exposure) # for printing
 
oprint(summary(exposure)) # fashionable design
 
ggplot(exposure@output, aes(x = exposureResult, weight = 1, fill = Year)) +
geom_density() +
theme_grey(base_size = 24)
 
</rcode>


== Rationale ==
== Rationale ==
Line 16: Line 31:
===Data===
===Data===


<t2b index="Year,Observation" locations="Unit,Result,Description" unit="-">
<t2b index="Exposure agent,Year" obs="Result" desc="Description" unit="µg /m3">
2012|µg /m3|1 - 2|
PM2.5|2012|1 - 2|
2020|µg /m3|10 - 11|
PM2.5|2020|10 - 11|
</t2b>
</t2b>


=== Formula ===
=== Formula ===


<rcode  
<rcode label="Initiate ovariable" name="initiate">
include="page:OpasnetUtils/Summary|name:summary"
label="Initiate ovariable"  
graphics="1"
>


library(OpasnetUtils) # relevant libraries
library(OpasnetUtils) # relevant libraries
library(xtable)
library(ggplot2)
# Get relevant data
data <- tidy(opbase.data("Op_en5674"), objname = "exposure")
data <- data[, colnames(data) != "Obs"] # This should happen in tidy but it doesn't for some reason.


# Define ovariable
# Define ovariable


exposure <- new("ovariable",  
exposure <- Ovariable("exposure", ddata = "Op_en5674")
name        = "exposure",
data        = data
)


objects.put(exposure) # save for later use
objects.store(exposure) # save for later use


cat("Ovariable exposure saved. Write down the run key for further use.\n")
cat("Ovariable exposure saved.\n")
 
out <- EvalOutput(exposure) # for printing
 
summary(out) # fashionable design
 
ggplot(out@output, aes(x = exposureResult, weight = 1, fill = Year)) +
geom_density() +
theme_grey(base_size = 24)


</rcode>
</rcode>
Line 70: Line 63:


==Related files==
==Related files==
{{mfiles}}

Revision as of 04:09, 24 March 2015



Question

What is the exposure in the Training assessment?

Answer

+ Show code

Rationale

Data

Training exposure: Difference between revisions(µg /m3)
ObsExposure agentYearResultDescription
1PM2.520121 - 2
2PM2.5202010 - 11

Formula

+ Show code

See also

Materials and examples for training in Opasnet and open assessment
Help pages Wiki editingHow to edit wikipagesQuick reference for wiki editingDrawing graphsOpasnet policiesWatching pagesWriting formulaeWord to WikiWiki editing Advanced skills
Training assessment (examples of different objects) Training assessmentTraining exposureTraining health impactTraining costsClimate change policies and health in KuopioClimate change policies in Kuopio
Methods and concepts AssessmentVariableMethodQuestionAnswerRationaleAttributeDecisionResultObject-oriented programming in OpasnetUniversal objectStudyFormulaOpasnetBaseUtilsOpen assessmentPSSP
Terms with changed use ScopeDefinitionResultTool


Keywords

References


Related files