Training exposure: Difference between revisions

From Opasnet
Jump to navigation Jump to search
No edit summary
 
(7 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category:Costs and valuations]]
[[Category:Costs and valuations]]
[[Category:Opasnet training]]
[[Category:Opasnet training]]
[[Category:Contains R code]]
{{variable|moderator=Jouni|stub=Yes}}
{{variable|moderator=Jouni|stub=Yes}}


Line 8: Line 9:


== Answer ==
== Answer ==
<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 13: 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|ug/m3|1 - 2|
PM2.5|2012|1 - 4|
2020|ug/m3|10 - 11|
PM2.5|2020|10 - 11|
</t2b>
</t2b>


=== Formula ===
=== Calculations ===


<rcode  
<rcode label="Initiate ovariable" name="initiate">
label="Initiate functions"  
graphics="1"
>


library(OpasnetUtils) # relevant libraries
library(OpasnetUtils) # relevant libraries
library(xtable)
# Get relevant data
data <- tidy(
op_baseGetData("opasnet_base", "Op_en5674")),
"exposure"
)


# Define ovariable
# Define ovariable


exposure <- new("ovariable",  
exposure <- Ovariable("exposure", ddata = "Op_en5674")
name        = "exposure",
colnames(exposure@data) <- gsub("[ \\.]", "_", colnames(exposure@data))
data        = data
)


out <- EvalOutput(exposure, N = 10) # for printing
objects.store(exposure) # save for later use


print(xtable(out), type = "html") # fashionable design
cat("Ovariable exposure saved.\n")


objects.put(exposure) # save for later use
</rcode>
</rcode>


Line 60: Line 64:


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

Latest revision as of 08:18, 3 June 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 - 4
2PM2.5202010 - 11

Calculations

+ 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