Utility Function to Prepare Linear Regression Edges of Trapezoid
Source:R/trapezoid_utilities.R
linear_coefficients.Rd
Called by optram_wetdry_coefficients
to prepare linear regression line along trapezoid edges
Calculates the intercept and slope of both wet and dry edges
Not exported
Note
Three CSV files are saved:
the regressions coefficients,
the trapezoid edge points
RMSE of the fitted curve
Examples
if (FALSE) { # \dontrun{
edges_file <- system.file("extdata/trapezoid_edges.csv",
package = "rOPTRAM")
df <- read.csv(edges_file)
output_dir <- tempdir()
coeffs <- linear_coefficients(df, output_dir)
coeffs
} # }