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

Description Usage Arguments Value Examples

View source: R/transition_functions.R

Description

Probability of finding a host and successfully feeding on it

Usage

1
find_n_feed(x, y, a, pref, feed_success)

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.

y

Predictor 2 in transitions table. Not used in this function.

a

Parameter a in parameters table.

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.

Value

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

Examples

1
2
find_n_feed(10, NULL, .1, 1, .5)
find_n_feed(runif(2) * 10, NULL, .1, runif(2), runif(2))

IxPopDyMod documentation built on Feb. 8, 2022, 9:07 a.m.