Description Usage Arguments Examples
View source: R/smartsurv.weight.R
Uses weights that indicate how likely each node was to be the starting location (introduction point) for an invasion. Uses output from smartsurv. Finds the rate at which sampling success (other nodes free of invasion when invasion reaches sampling node) is expected to occur for each potential sampling node.
1 | smartsurv.weight(ss.out, adjmat, wtvec, nodenam = NA)
|
ss.out |
output object from function smartsurv |
adjmat |
adjacency matrix for evaluation |
wtvec |
vector of weights indicating the probability that each node would be the starting node for invasion |
nodenam |
vector of node names |
1 2 3 4 5 6 7 8 | Amat <- matrix(c(1,0,0,0,1,1,0,0,0,1,1,0,1,1,1,1),nrow=4,ncol=4)
smartsurv(adjmat=Amat, stoch=F, nrealz=1)
sAmat <- Amat * 0.7
ss.outex <- smartsurv(adjmat=sAmat, stoch=T, nrealz=10)
wtvec.ex <- c(1,10,100,1)
smartsurv.weight(ss.out=ss.outex, adjmat=sAmat, wtvec=wtvec.ex)
smartsurv.weight(ss.out=ss.outex, adjmat=sAmat, wtvec=wtvec.ex, nodenam=c("KS","NE","ND","SD"))
smartsurv.weight(ss.out=ss.outex, adjmat=sAmat, wtvec=c(1,100,10,1), nodenam=c("KS","NE","ND","SD"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.