permfunc: Test the difference of the network connectivity between two...

Description Usage Arguments Value

View source: R/Permfunc.R

Description

The function uses permutations to obtain p-values of the connectivity differences, used in permDif function.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
permfunc(
  perms,
  dat,
  pb,
  outnames,
  pred,
  pnames,
  subset = NULL,
  nobs.per.person,
  group.per.person,
  type = "lagged",
  optim = "bobyqa"
)

Arguments

perms

number of permutations

dat

data frame

pb

name progressbar

outnames

vector with the names of the variables which are centered.

pred

formula with names of predictor variables for lmer.

pnames

vector with names of predictor variables.

subset

subset of predictor variables which are compared in summary statistics. If null then result is also null.

nobs.per.person

vector with number of observations per person

group.per.person

vector with group number for each person

type

type of analyses: lagged ("lagged") or contemporaneous predictors ("contemp")

optim

optimizer used in lmer, options: "bobyqa" or "Nelder_Mead", see lmerControl (lme4)

Value

matrix (4 x 3) with total differences, diagonal differences, off-diagonal differences, and differences between standard deviations, with their p-values (2 definitions).


PeterVerboon/lagnetw documentation built on Aug. 4, 2020, 5:16 p.m.