Difference between revisions of "Training health impact"

From Testiwiki
Jump to: navigation, search
(created pages for training)
 
(update does not work here, otherwise promising)
Line 1: Line 1:
'''Brief guidance about the contents.''' This box of text can removed.
+
[[Category:Costs and valuations]]
+
[[Category:Opasnet training]]
    <nowiki>{{variable}}</nowiki> template:
+
{{variable|moderator=Jouni|stub=Yes}}
        Put your own username in moderator=Username unless someone else takes care of the page content.
 
        When the page is quite developed, change stub=No
 
    Question (previously Scope) Specifies a clear research question.
 
        This includes a question and a verbal definition of the spatial, temporal, and other limits
 
        (system boundaries) of the variable. The question is defined according to the use
 
        purpose of the assessment(s) that the variable belongs to.
 
    Answer (previously Result) Answer to the research question.
 
        Contains anything that a reader needs to understand the answer. If possible, a numerical expression or distribution.
 
        If there is more than a single answer, i.e. the answer is actually a list of answers, a [[data table]] should be used.
 
        Contains also the unit(s) in which the answer is expressed.
 
    Rationale (previously Definition) Description about how the answer is derived.
 
        Rationale contains anything that is needed to convince a critical rational reader.
 
        Description of the data used for obtaining the value of the variable
 
        (e.g. measurement data; mathematical method and its parameters).
 
        Please include references (preferably using the ''<nowiki><ref> </ref></nowiki>'' tags)
 
        and links to original data, as appropriate.
 
        May contain subheadings Dependencies and Formula.
 
        Subheadings no longer used: Data as most of Rationale is this anyway; Unit as it is already mentioned in Answer.
 
            Dependencies: Links to all variables whose answers affect the answer of this variable.
 
            Formula (or R code): computer code or mathematical formula for calculating the answer.
 
    See also: Links to relevant information that does not belong to ''Rationale''.
 
    Keywords: Any words that help users to find this page with search tools.
 
    References will appear automatically, if cited above using the ''<nowiki><ref> </ref></nowiki>'' tags.
 
        Additional references can also be listed here.
 
    ''Related files'' automatically shows files from [[Opasnet File]] if they have been linked to this page.
 
    <nowiki>{{publication}}</nowiki> can be used if the page is good enough to be a publication by itself. Otherwise, delete.
 
 
 
{{variable|moderator=|stub=Yes}}
 
  
 
== Question ==
 
== Question ==
  
 +
What is the health impact in the [[Training assessment]]?
  
 
== Answer ==
 
== Answer ==
 +
 +
There is no data; the answer is based on modelling only.
 +
 +
<rcode
 +
name="answer"
 +
label="Run code"
 +
include="
 +
page:Object-oriented_programming_in_Opasnet|name:answer|
 +
page:OpasnetBaseUtils|name:generic|
 +
page:Training_health_impact|name:formula
 +
"
 +
>
 +
 +
cat("Initiation successful. Now starting the model.\n")
 +
 +
library(xtable)
 +
out <- make.ovariable(
 +
data = NULL,
 +
formula = formula.Op_en5675,
 +
dependencies = dependencies.Op_en5675)
 +
cat("Computing training exposures.\n")
 +
print(out)
 +
 +
</rcode>
  
  
 
== Rationale ==
 
== Rationale ==
  
 +
=== Formula ===
 +
 +
<rcode
 +
name="formula"
 +
label="Initiate functions"
 +
include="
 +
page:Object-oriented_programming_in_Opasnet|name:answer|
 +
page:OpasnetBaseUtils|name:generic|
 +
page:Training_exposure|name:formula
 +
"
 +
variables="name:population|description:What is the size of the population|default:100000"
 +
>
 +
 +
dependencies.Op_en5675 <- list(
 +
exposure = 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) {
 +
cases <- x@population * x@background * exp(x@exposure * ln(x@erf))
 +
return(cases)
 +
}
 +
 +
cat("Initiation successful. Now starting the model.\n")
 +
 +
library(xtable)
 +
out <- make.ovariable(
 +
data = "0 - 100000",
 +
formula = formula.Op_en5675,
 +
dependencies = dependencies.Op_en5675)
 +
cat("Computing training health impact.\n")
 +
print(out)
 +
 +
########### update updates the sample of an ovariable based on data and function.
 +
setMethod(
 +
f = "update",
 +
signature = "ovariable",
 +
definition = function(object) {
 +
dat <- data.frame(Source = "Data", interpret(object@data))
 +
dep <- object@dependencies
 +
for(i in 1:length(dep)) {
 +
if(class(dep[[i]]) == "ovariable") {
 +
dep[[i]] <- dep[[i]]@sample
 +
} else {
 +
if(length(grep("Op_(en|fi)", dep[[i]])) > 0) {
 +
dep[[i]] <- op_baseGetData("opasnet_base", dep[[i]])}
 +
else {
 +
if(class(dep[[i]]) != "data.frame" & !is.numeric(dep[[i]])) {
 +
print(dep[[i]])
 +
print(class(dep[[i]]))
 +
dep[[i]] <- get(dep[[i]])
 +
}
 +
}
 +
}
 +
}
 +
form <- data.frame(Source = "Formula", make.ovariable(object@formula(dep))@sample)
 +
object@sample <- orbind(dat, form)@sample
 +
return(object)
 +
}
 +
)
  
  
=== Dependencies ===
+
out <- update(out)
 +
print(out)
  
=== Formula ===
+
</rcode>
  
 
==See also==
 
==See also==
 +
 +
{{Opasnet training}}
  
 
==Keywords==
 
==Keywords==
Line 56: Line 118:
  
 
{{mfiles}}
 
{{mfiles}}
 
{{publication
 
| authors        =
 
| title          =
 
| explanation    =
 
| publishingyear =
 
| urn            =
 
| reference      =
 
}}
 

Revision as of 20:54, 14 May 2012



Question

What is the health impact in the Training assessment?

Answer

There is no data; the answer is based on modelling only.

+ Show code


Rationale

Formula

What is the size of the population:

+ 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

<mfanonymousfilelist></mfanonymousfilelist>