nnt_anova: Laupacis' adjusted and marginal NNT in one-way ANOVA

View source: R/nnt_anova.R

nnt_anovaR Documentation

Laupacis' adjusted and marginal NNT in one-way ANOVA

Description

Internal function. Not for users. Calculates Laupacis' adjusted and marginal NNT in one-way ANOVA. Takes a data-set suitable for a one-way ANOVA analysis and returns the estimated adjusted NNT(k) and the marginal NNT.

Usage

nnt_anova(response, x, cutoff, base, decrease, data)

Arguments

response

vector of the response variable (i.e., the dependent variable).

x

vector of the explanatory variable, i.e., the factor of different treatments.

cutoff

the MCID threshold.

base

control group of the x variable in the one-way ANOVA model.

decrease

TRUE or FALSE. Indicates whether the MCID change is decrease in the response variable.

data

data frame that contains the required variables for the computations.

Value

The estimated marginal and adjusted NNT with their corresponding 95 percent confidence intervals.


vancak/NNTcalculator documentation built on April 7, 2022, 3:48 a.m.