pred_cond: Conditional prediction of species at one site.

Description Usage Arguments Value

View source: R/pred_cond.R

Description

Calculates conditional likelihood of one species presences based on environmental values and presence of other species.

Usage

1
2
pred_cond(betas_shared, betas_ssv = NULL, site_env, occupancy, cooccurrence,
  focal_species, ssv = FALSE)

Arguments

betas_shared

Non species-specific enrivonmental parameters.

betas_ssv

Species-specific environmental parameters.

occupancy

Occupancy vector for all species.

cooccurrence

Cooccurrence matrix for the site (detrmined by the temperature at the site, use pred_correlation to derive this).

focal_species

Integer which dictates which species in the occupancy vector you want to test likelihood of.

ssv

Whether or not the model contains species specific variables.

Value

Value with likelihood of species at that site.


samaperrin/JSAM documentation built on June 16, 2020, 9:26 a.m.