testvar: Test the variance of a random effect

Description Usage Arguments Details

View source: R/testvar.R

Description

Test the variance of a random effect

Usage

1
testvar(ovar, xx, yy, dset, DID, obs, dvv, ctrl = defaultctrl)

Arguments

ovar

the outcome variable in quotes.

xx

string set of fixed variables separated by comma (program assumes two intercept).

yy

string set of random variables separated by comma (program assumes no intercept in the usual sense); last item on the list is tested (the first two arguments are the same here, but they do not have to be; there might be more items in the fixed part.

dset

the dataset.

DID

the dyad ID in quotes.

obs

the observation ID variable in quotes. This is a unique number for each dyad-measurement.

dvv

the distinguishing variable in quotes.

ctrl

an lmeControl object. Defaults to msMaxIter=10000, MaxIter=100000, msMaxEval=10000, returnObject=TRUE, niterEM=10000, nlmStepMax=1000.

Details

Example call: testvar("AConflict","man,woman,MTime,WTime","man,woman,WTime,MTime",kashy_ppp,"DYADID","obsid", "GenderS").


RandiLGarcia/dyadr documentation built on March 23, 2021, 3:33 a.m.