PurpleAirSoH_dailyABFit {AirSensor}R Documentation

Daily linear model fit values

Description

This function calculates daily linear model values between the pm25_A and pm25_B channels. A daily r-squared value is returned in addition to the coefficients of the linear fit (slope and intercept)

Usage

PurpleAirSoH_dailyABFit(pat = NULL)

Arguments

pat

PurpleAir Timeseries pat object.

Examples

 
library(AirSensor)

tbl <- 
  example_pat_failure_A %>%
  PurpleAirSoH_dailyABFit() 
  
names(tbl)
  
timeseriesTbl_multiPlot(
  tbl, 
  parameters = c("pm25_A_pm25_B_rsquared", "pm25_A_pm25_B_slope"),
  ylim = c(-1,1)
)


[Package AirSensor version 1.0.8 Index]