predict_temperature_values {CBASSED50} | R Documentation |
Predict the temperature values
Description
This function takes a list of models and generates a sequence of temperature values that span the range of input temperatures.
Usage
predict_temperature_values(models, temp_range)
Arguments
models |
A list of models where each element represents a model object containing coefficients. |
temp_range |
the temperature range to be used for predictions from the function define_temperature_ranges |
Value
A data frame containing the predicted PAM values for each temperature along with their corresponding grouping property. Each row represents a model's predicted PAM value and its associated grouping property and confidence interval.
Examples
data(cbass_dataset)
preprocessed_data <- preprocess_dataset(cbass_dataset)
models <- fit_drms(preprocessed_data,
c("Site", "Condition", "Species", "Timepoint"),
"Pam_value ~ Temperature", is_curveid = TRUE)
temp_ranges <- define_temperature_ranges(cbass_dataset$Temperature, n = 100)
predict_temperature_values(models, temp_ranges)
[Package CBASSED50 version 0.2.0 Index]