as.network.transmat {EpiModel} | R Documentation |
Convert transmat Infection Tree into a network Object
Description
Converts a transmission matrix from the get_transmat
function into a network class object.
Usage
## S3 method for class 'transmat'
as.network(x, ...)
Arguments
x |
An object of class |
... |
Unused. |
Details
When converting from a transmat
to a network
object, this
functions copies the edge attributes within the transmission matrix
('at'
, 'infDur'
, 'transProb'
, 'actRate'
, and
'finalProb'
) into edge attributes on the network.
Value
A network
object.
[Package EpiModel version 2.4.0 Index]