buildModelClass
is generic function that calls a method
to create a object base on model's name.
buildModelClass(
x,
var.names,
init.cond,
model.parms,
probWeights,
emigrRule,
prop.func = NULL,
state.var = NULL,
infl.var = NULL,
state.change.matrix = NULL
)
is an empty object of a class requested.
a list
with variable names of the network:
the donor node, the receiver node, the time when each connection between
donor to the receiver happened and the weight of these connection.
The variables names must be "from", "to", "Time" and "arc", respectively.
a named vector
with initial conditions.
a named vector
with model's parameters.
a named vector
(optional and for migration type
only) mapping state variables to migration probability weights based on
state variables. These argument can be used to give weights for sampling
individuals from node. They need not sum to one, they should be
non-negative and not zero. For more information on the sampling method
sample.
a string (optional and for migration type only) stating how many individual emigrate based on state variables. It requires that the network have weights instead of number of individuals that migrate.
a character vector
with propensity functions
of a generic node. See references for more details
a character vector
with the state variables of
the propensity functions.
a named vector
mapping state variables to influence
variables.
is a state-change matrix
. See references
for more details
An object of the class requested.
.