Description Usage Arguments Value Examples
This function predicts STPD correction factor using linear model with predictor variables: baro
for barometric pressure and temp_c
for temperature in celsius.
The data that linear model was fitted can be found in a data frame btps_df
.
1 2 3 4 5 6 7 | get_STPD_factor(
baro,
temp_c,
interval = c("none", "confidence", "prediction"),
level = 0.95,
...
)
|
baro |
(Numeric) Barometric pressure (in mmHg) at the collection site. |
temp_c |
(Numeric) Temperature in celsius at the collection site. |
interval |
Type of interval calculation: "None" returns estimated STPD correction factor; "confidence" and "prediction" return confidence interval and prediction interval, respectively. |
level |
Tolerance/confidence level. |
... |
passed to |
A numeric vector (invisibly) or matrix (if interval
= "confidence" or "prediction").
1 2 3 4 5 6 | # Estimated STPD factor
get_STPD_factor(baro = 761, temp_c = 29)
get_STPD_factor(baro = 761:762, temp_c = 29:30) # Vectorized
# Estimated STPD factor value with confidence Interval
get_STPD_factor(baro = 761:762, temp_c = 29:30, interval = "c")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.