groupedstats (version 0.1.1)

grouped_p_value: Extracting p-values for models that don't produce them.

Description

Extracting p-values for models that don't produce them.

Usage

grouped_p_value(data, grouping.vars, ..f, ...)

Arguments

data

Dataframe (or tibble) from which variables are to be taken.

grouping.vars

Grouping variables.

..f

A function, or function name as a string.

...

<dynamic> Arguments for .fn.

Examples

Run this code
# NOT RUN {
groupedstats:::grouped_p_value(
  data = ggplot2::diamonds,
  formula = scale(price) ~ scale(carat) + (carat | color),
  grouping.vars = c(cut, clarity),
  ..f = lme4::lmer
)
# }

Run the code above in your browser using DataLab