Skip to contents

check if input parameters violates model(Pulliam 1988) assumptions

Usage

assumption_check(params)

Arguments

params

a vector of model parameters

Examples

# VALID parameter example 1: lambdaSource > 1, lambdaSink < 1
assumption_check(params = c(pa = 0.6, pj = 0.15, betaSource = 4, betaSink = 1))
#> [1] TRUE
# INVALID parameter example 1: lambdaSource < 1, lambdaSInk < 1
assumption_check(params = c(pa = 0.6, pj = 0.15, betaSource = 2, betaSink = 2))
#> [1] FALSE
# INVALID parameter example 2: lambdaSource < 1, lambdaSink > 1
assumption_check(params = c(pa = 0.6, pj = 0.15, betaSource = 2, betaSink = 3))
#> [1] FALSE