Learn R Programming

IxPopDyMod (version 0.3.0)

find_n_feed: Probability of finding a host and successfully feeding on it

Description

Probability of finding a host and successfully feeding on it

Usage

find_n_feed(x, a, pref, feed_success)

Value

Numeric vector of length 1 indicating probability that ticks find any host and then successfully feed on that host.

Arguments

x

Predictor 1 in transitions table. Numeric vector indicating host density for each of the host species. Length should be equal to the number of host species.

a

Parameter a is the probability that a tick finds any one host.

pref

Parameters named pref in parameters table. Numeric vector of length equal to the number of host species. Values are the preference for ticks in a given transition for each host species.

feed_success

Parameters named feed success in parameters table. Numeric vector of length equal to the number of host species. Values are the feeding success rate for ticks in a given transition while feeding on each host species.

Examples

Run this code
find_n_feed(10, .1, 1, .5)
find_n_feed(runif(2) * 10, .1, runif(2), runif(2))

Run the code above in your browser using DataLab