Learn R Programming

partR2 (version 0.9.2)

part_R2s: Calculate part R2

Description

Calculate part R2

Usage

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

Value

R2, atm data.frame with one element

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