rew: Reward matrix function

Description Usage Arguments Value Author(s) Examples

View source: R/rew.R

Description

Computes the reward matrix of the problem (rows for actions and cols for states).

Usage

1
rew(p0, pm, d0, dm, ds, V, Cm, Cs)

Arguments

p0

Local probability of persitance : P(extant/extant, survey or stop).

pm

Local probability of persitance if manage : P(extant/extant, manage).

d0

Local probability of detection : P(present/extant, stop).

dm

Local probability of detection : P(present/extant, manage).

ds

Local probability of detection if survey : P(present/extant, survey).

V

Estimated economic value of the species ($/yr).

Cm

Estimated cost of managing ($/yr).

Cs

Estimated cost of survey ($/yr).

Value

Matrix of 3 rows and 2 columns, describing the reward (rows for actions and cols for states)

Author(s)

Luz Pascal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## Not run: 
#values for Sumatran tigers
pen <- 0.1
p0 <- 1-pen
pem <- 0.05816
pm <- 1 - pem
V <- 175.133
Cm <- 18.784
Cs <- 10.840
d0 <- 0.01
dm <- 0.01
ds <- 0.78193

#buiding the matrices of the problem
r <- smsPOMDP::rew(p0, pm, d0, dm, ds, V, Cm, Cs)#reward matrix

## End(Not run)

conservation-decisions/smsPOMDP documentation built on Oct. 27, 2020, 10:44 p.m.