part_R2s: Calculate part R2

View source: R/r2_helpers.R

part_R2sR Documentation

Calculate part R2

Description

Calculate part R2

Usage

part_R2s(
  mod,
  expct,
  overdisp_name,
  R2_type,
  all_comb,
  partition,
  data_mod,
  allow_neg_r2
)

Arguments

mod

merMod object

expct

Expectation

overdisp_name

Name of overdispersion term

R2_type

"marginal" or "conditional"

all_comb

variable combinations to remove to calculate R2

partition

check if R2 partitioning is needed

data_mod

data.frame

allow_neg_r2

TRUE or FALSE

Value

R2, atm data.frame with one element


mastoffel/partR2 documentation built on March 9, 2024, 1:16 p.m.