makedec: Decisions at each node about whether to adopt management

Description Usage Arguments Details Examples

View source: R/makedec.R

Description

This function generates decisions at each node about management

Usage

1
2
3
4
5
6
7
8
9
makedec(
  comvec,
  geocoords4n,
  probadoptmean4,
  probadoptsd4,
  readprobadoptvec4,
  probadoptvec4,
  plotmp = F
)

Arguments

comvec

vector of 1=info is present, 0=info is not present

geocoords4n

matrix of x,y coordinates for the nodes, for mapping if plotmp = T (and for determining the number of nodes in current version)

probadoptmean4

mean probability of adopting management if informed

probadoptsd4

sd for drawing probability of adoption, in truncated normal distribution

readprobadoptvec4

if T, then a VECTOR of probadoptvec4 values is read in - if F, probadoptmean4 and probadoptsd4 are used to generate the vector

probadoptvec4

vector of probabilities of adoption if informed for nodes in the network (readprobadoptvec4 determines whether probadoptvec4 is read in to makedec or generated within makedec based on probadoptmean4 and probadoptsd4 )

plotmp

if T, then map of decision is plotted

Details

Updated 2020-09-05

Examples

1
2
3
x5 <- makedec(comvec=c(1,1,1,0,0,0), geocoords4n=matrix(c(1,1, 1,2, 1,3, 2,1, 2,2, 2,3), byrow=T,ncol=2), readprobadoptvec4=F, probadoptmean4=0.1, probadoptsd4 =0.1, plotmp=T)
x6 <- makedec(comvec=c(1,1,1,0,0,0), geocoords4n=matrix(c(1,1, 1,2, 1,3, 2,1, 2,2, 2,3), byrow=T,ncol=2), readprobadoptvec4=F, probadoptmean4=0.5, probadoptsd4 =0.1, plotmp=T)
x7 <- makedec(comvec=c(1,1,1,0,0,0), geocoords4n=matrix(c(1,1, 1,2, 1,3, 2,1, 2,2, 2,3), byrow=T,ncol=2), readprobadoptvec4=T, probadoptvec4=c(0.1,0.1,0.9,0.1,0.2,0.3), plotmp=T)

GarrettLab/INApreliminary documentation built on June 7, 2021, 10:59 a.m.