Skip to contents

Fit disjoint linear model portion and return slope/midpoint components

Usage

slope_midpoint(subset_df, freq_mid)

Arguments

subset_df,

dataframe with subset of periodogram data corresponding to a particular frequency band

freq_mid,

frequency argument at which to evaluate the model to estimate the periodogram midpoint over the given frequency band

Value

param_list, named list of summary parameters for the linear model over the frequency band of interest

Details

Helper function to fit a linear model then extract the slope and midpoint parameters