View source: R/prior_probability_matrix.R
prior_probability_matrix | R Documentation |
Create prior probability matrix for the value of information analysis.
prior_probability_matrix(
site_data,
feature_data,
site_detection_columns,
site_n_surveys_columns,
site_probability_columns,
feature_survey_sensitivity_column,
feature_survey_specificity_column,
feature_model_sensitivity_column,
feature_model_specificity_column
)
site_data |
|
feature_data |
|
site_detection_columns |
|
site_n_surveys_columns |
|
site_probability_columns |
|
feature_survey_sensitivity_column |
|
feature_survey_specificity_column |
|
feature_model_sensitivity_column |
|
feature_model_specificity_column |
|
A matrix
object containing the prior probabilities of each
feature occupying each site. Each row corresponds to a different
feature and each column corresponds to a different site.
# set seeds for reproducibility
set.seed(123)
# load example site data
data(sim_sites)
print(sim_sites)
# load example feature data
data(sim_features)
print(sim_features)
# calculate prior probability matrix
prior_matrix <- prior_probability_matrix(
sim_sites, sim_features,
c("f1", "f2", "f3"), c("n1", "n2", "n3"), c("p1", "p2", "p3"),
"survey_sensitivity", "survey_specificity",
"model_sensitivity", "model_specificity")
# preview prior probability matrix
print(prior_matrix)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.