Difference between revisions of "City-level climate policy model"
From Testiwiki
(→Formula) |
(→Formula: formula drafted but idea is not clear enough) |
||
Line 78: | Line 78: | ||
library(ggplot2) | library(ggplot2) | ||
− | issues <- | + | issues <- op_baseGetData("opasnet_base", "Op_en5811") |
equations <- tidy(op_baseGetData("opasnet_base", "Op_enXXXX"), objname = "equations") | equations <- tidy(op_baseGetData("opasnet_base", "Op_enXXXX"), objname = "equations") | ||
− | Policy.targets <- new("ovariable", name = "Policy.targets", data = issues[issues$Table == "Policy targets" , ], | + | formula <- function(me, dependencies, ...) { |
− | Actions on | + | ComputeDependencies(dependencies, ...) |
− | Primary impacts on | + | coefficients <- new("ovariable", |
− | End uses of energy | + | name = "coefficients", |
− | Emissions | + | data = equations[equations$Role == "Child" & equations$Issue == me, ] |
− | Time budgets | + | ) |
− | Exposures | + | out <- issues * coefficient |
− | Policy outcomes | + | return(out) |
+ | |||
+ | |||
+ | } | ||
+ | |||
+ | Policy.targets <- new("ovariable", | ||
+ | name = "Policy.targets", | ||
+ | data = tidy(issues[issues$Table == "Policy targets" , ], objname = "Policy.targets") | ||
+ | ) | ||
+ | |||
+ | Actions.on <- new("ovariable", | ||
+ | name = "Actions.on", | ||
+ | data = tidy(issues[issues$Table == "Actions on" , ], objname = "Actions.on"), | ||
+ | dependencies = data.frame(Name = c("equations", "Policy.targets", "Actions.on", "Primary.impacts.on", "End.uses.of.energy", "Emissions", "Time.budgets", "Exposures", "Policy.outcomes")), | ||
+ | formula = formula | ||
+ | ) | ||
+ | |||
+ | c("Policy.targets", "Actions.on", "Primary.impacts.on", "End.uses.of.energy", "Emissions", "Time.budgets", "Exposures", "Policy.outcomes") | ||
+ | |||
</rcode> | </rcode> | ||
Revision as of 04:04, 13 September 2012
This page is a assessment.
The page identifier is Op_en5811 |
---|
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
Scope
Question
Boundaries
Scenarios
Intended users
Participants
Answer
Error creating thumbnail: Unable to save thumbnail to destination
Rationale
Dependencies
This is a generic table format and assessment structure for most inputs of the model. This is based on File:UrgencheConceptualModel.xlsx
These are the tables sharing the same structure below:
- Policy targets
- Actions on
- Primary impacts on
- End uses of energy
- Emissions
- Time budgets
- Exposures
- Policy outcomes
This table is a part of Policy targets:
Obs | Topic | Issue | Unit | Result | Description |
---|---|---|---|---|---|
1 | Urban area | Urban density | m2/km2 | floor space | |
2 | Urban area | Urban plan/zoning | |||
3 | Urban area | Street network | lane-km(/km2) | ||
4 | Urban area | Rail network | rail-km(/km2) | ||
5 | Urban area | Walk/bike network | km(/km2) | ||
6 | Transport | Local person transport | total person-km/a | ||
7 | Transport | (intercity personal transport) | |||
8 | Transport | Local transport of goods | |||
9 | Transport | (long range goods transport) | |||
10 | Transport | (street) transport electrification | % person-km | ||
11 | Etc |
The connections between items is created using this kind of a table (here a wiki table format is used, but actually it should be a data table). Proximity to work and school is used as an example. All causal dependencies are interpreted in the following way, where each equation defines one child:
Failed to parse (Missing <code>texvc</code> executable. Please see math/README to configure.): Child = \Sigma Parent_i * Coefficient_i
Equation | Table | Topic | Issue | Role | Coefficient | Description |
---|---|---|---|---|---|---|
1 | Impacts on | Urban environment functionality | Proximity to work and school | Child | ||
1 | Actions on | Urban development | Population density | Parent | 1 | |
1 | Actions on | Urban development | Land use efficiency | Parent | 2.2 | |
1 | Policy target | Urban area | Urban plan/zoning | Parent | 3.6 |
Formula
See also
Keywords
References
Related files
<mfanonymousfilelist></mfanonymousfilelist>