pred_cond_entire: Conditional prediction of species at range of sites site.

Description Usage Arguments Value

View source: R/pred_cond_entire.R

Description

Calculates conditional likelihood of one species presences based on environmental values and presence of other species at a range of sites.

Usage

1
2
pred_cond_entire(draws, betas_shared, betas_ssv = NULL, site_matrix,
  occupancy_matrix, temp_vector, focal_species, ssv = FALSE)

Arguments

draws

A set of mcmc draws produced by the GRETA function draws.

betas_shared

Non species-specific enrivonmental parameters.

betas_ssv

Species-specific environmental parameters.

occupancy_matrix

Occupancy matrix for all species.

temp_vector

Vector of temperatures at different sites, used to determine cooccurrence matrices.

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

Vector of length site giving likelihoods of species presence at every site.


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