get_ran_vals: Assess Random-Effect of Student Several Test Scores

Description Usage Arguments Examples

View source: R/get_ran_vals.R

Description

From this tidy data frame, the random effects of the test results are assessed using lme4::lmer(score_post ~ 1 + score_pre + (1 | effect)) funciton.

Usage

1
2
3
4
5
6
7
8
get_ran_vals(
  .data,
  .var_school,
  .var_class,
  .var_score_pre,
  .var_score_post,
  effects = "class"
)

Arguments

.data

data.frame including school name, class name, score-pre and score-post of each student

.var_school

school name.

.var_class

class name.

.var_score_pre

score-pre.

.var_score_post

score-post, which is used as the response variable in mixed models

effects

specification for effects, which is either class or school

Examples

1
get_ran_vals(df, school, class, score1, score2, "class")

perlatex/easyuse documentation built on April 14, 2020, 5:35 a.m.