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

Description Usage Arguments Value Examples

View source: R/permDifCor.R

Description

Note that these variables must exist in the data.

Usage

1
permDifCor(dat, vars, group, perms = 1000)

Arguments

dat

data frame

vars

vector with the names of the dependent variables.

group

dichotomous variable that indicates the two groups to be compared

perms

number of permutations.

Value

Estimate of difference between groups wrt correlation based network connectivity with p value based on permutations. The p-values for differences of all individual correlations and of summaries are given. Also p-values for the differences of the centrality measures outDegree and closeness and betweenness are given.

Examples

1
2
3
data("gratitude")
vars <- c("pa_1","pa_2","pa_3","na_1","na_2","na_3")
out <- permDifCor(dat=gratitude,vars=vars, group="wellBeing", perms = 10)

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