| inner_perc_R | R Documentation |
inner_perc_R() Calculates the percentage of groups for which the fixed
effect x is "inner". Data are assumed to be ordered by grp.
inner_perc_R(x, grp)
x |
Column of X matrix to be assessed |
grp |
Integer vector with groups |
Translated inner_perc() from nlme's nlmefit.c file (https://github.com/cran/nlme/blob/master/src/nlmefit.c)
Code translation assistance provided by Anthropic's Claude 3.5 Sonnet (2024 version) on December 17, 2024.
Numeric vector of percentages
library(lme4)
data(sleepstudy)
# When used in model_diagram() group labels ("grps") should be unique
inner_perc_R(sleepstudy[,"Days"],sleepstudy[,"Subject"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.