predict_cough_variance: Predict cough variance based on mean-variance regression...

Description Usage Arguments Value

View source: R/predict_cough_variance.R

Description

The format of the regression model used is: variance = exp( b1 *log(mean) + intercept ). You can make up the coefficients b1 and intercept yourself, or generate them using the function fit_model_to_cough(). The default values come from a large Hyfe study in northern Spain, and should produce realistic variance values.

Usage

1
predict_cough_variance(cough_rate, b1 = 1.339539, intercept = 1.90719)

Arguments

cough_rate

The mean cough rate (coughs per hour) for which you want to predict the variance.

b1

The first coefficient of the model.

intercept

The second coefficient of the model.

Value

The predicted variance.


hyfe-ai/hyfer documentation built on Dec. 20, 2021, 5:53 p.m.