PurpleAirSoH_dailyABFit: Daily linear model fit values

Description Usage Arguments Examples

View source: R/PurpleAirSoH_dailyABFit.R

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

1

Arguments

pat

PurpleAir Timeseries pat object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
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)
)

AirSensor documentation built on March 13, 2021, 1:07 a.m.