get_predicted_pam_values {CBASSED50}R Documentation

Get Predicted PAM Values

Description

This function takes a list of models and a temperature range, and generates predicted PAM (Pulse Amplitude Modulation) values based on the provided models and temperature range.

Usage

get_predicted_pam_values(models, temp_range)

Arguments

models

A list of model objects representing PAM prediction models.

temp_range

A numeric vector containing a sequence of temperature values for which PAM predictions will be generated.

Value

A data frame containing the predicted PAM values along with corresponding temperature values from the given temperature range.

See Also

predict_temperature_values, transform_predictions_to_long_dataframe, define_temperature_ranges predict_temperature_values transform_predictions_to_long_dataframe define_temperature_ranges

Examples

# Load models and temperature range
# To load internal dataset that is provided with the R package
data("cbass_dataset")
cbass_dataset <- preprocess_dataset(cbass_dataset)
grouping_properties <- c("Site", "Condition", "Species", "Timepoint")
drm_formula <- "Pam_value ~ Temperature"

# Make list of model
models <- fit_drms(cbass_dataset, grouping_properties, drm_formula, is_curveid = FALSE)
temp_ranges <- define_temperature_ranges(cbass_dataset$Temperature, n = 100)

# Get predicted Pam_value values
predicted_pam <- get_predicted_pam_values(models, temp_ranges)


[Package CBASSED50 version 0.2.0 Index]