prepare_rnorm_model: Function to prepare a mixed model with varied fixed effect...

View source: R/utility_functions.R

prepare_rnorm_modelR Documentation

Function to prepare a mixed model with varied fixed effect estimantes

Description

prepare_rnorm_model() changes the fixed effect estimates of the specified model. It randomly selects "new" fixed effect estimates out of a normal distribution around the "old" estimates. Non significant effects in the given model are ignored and no rnorm-value is computet for them.

Usage

prepare_rnorm_model(model, data, simvar, critical_value)

Arguments

model

mixed model of interest

data

pilot data that fits the mixed model of interest

simvar

name of the variable that contains the subject??s number in data

critical_value

z/t value to test if a given fixed effect is significant

Value

A modified mixed model


DejanDraschkow/mixedpower documentation built on Feb. 16, 2024, 7:58 a.m.