perm.redo: Repeats a permutation according to random factors

View source: R/perm.redo.R

perm.redoR Documentation

Repeats a permutation according to random factors

Description

Performs node label permutations for GLMM by intra random factor label permutations.

Usage

perm.redo(df, labels, ctrl)

Arguments

df

a list of data frame with each data frame representing a subset of the random factors (e.g. groups and/or periods)

labels

a numeric or character vector representing the labels to permute.

ctrl

a numeric or character vector representing one or more columns that will be use as control facors.

Details

This is a function to repeat a permutation according to random factors. It allows to handle GLMM warnings or errors that may appear due to the permutation approach.

Value

a data frame in which the data frames of the list are merged, each data frame being permuted according to the input argument labels.

Author(s)

Sebastian Sosa, Ivan Puga-Gonzalez.


SebastianSosa/ANTs documentation built on Sept. 25, 2023, 11:06 p.m.