define_activity {efdm} | R Documentation |
Define an activity
Description
Define an activity
Usage
define_activity(name, dynamicvariables, transprobs = NULL, probname = name)
Arguments
name |
Name of activity used in reporting |
dynamicvariables |
Names of variables where changes happen |
transprobs |
Transition probabilities ( |
probname |
(optional) Name of activity in activity probabilities data |
Details
The set of activities in EFDM defines all possible alternatives for a forest stratum to develop during a scenario run step. Therefore activities are not only limited to forest treatments and management actions such as thinnings and final fellings but should also include 'no management' i.e. growth, if applicable. An activity may also be something else affecting the development, for example, a forest hazard: snow, wind, drought, pest damage etc.
name
is used as the name of the activity in the result of runEFDM
and it is used to identify the activity probability.
If multiple activities should be reported under a common name, actprobname
can
be used to specify the activity name in activity probability data.
dynamicvariables
are those (state space) variables which change as
a result of the activity
Typically an activity affects on the age, volume or stem count of the
forest, but an activity may also, for example, change land-use and then
a variable related to land-use categories is essential.
The transprobs
should be a data.frame
with columns:
pairs of dynamic variables. For example, if the dynamic variables are
vol
andage
, then transprobs should have columnsage0
,age1
,vol0
,vol1
.the probability of transition
prob
and possibly other variables affecting the transition probabilities. For example
soiltype
,treespecies
, etc.
estimatetransprobs
can be used to estimate transition probabilities
from a similar set of pair data of observations.
Value
An activity definition
Examples
define_activity("nomanagement", c("vol", "age"))