PermTest: Permutation Test

Description Usage Arguments Value Author(s) See Also

View source: R/PermTest.R

Description

The function performs a permuatation test with Deviance as test statistic.

Usage

1
2
3
PermTest(xx, formula.full, D.full, D.red, model.dat, glm.family, perm, 
	test.vars, cf, adjust, snowfall.args, snowfall.seed, 
	save.stat.data, file.save, use.save.stat.data, file.use)

Arguments

xx

Dataset (variables x patients).

formula.full

Formula from the full model.

D.full

Designmatrix of the full model.

D.red

Designmatrix of the reduced model.

model.dat

Dataset with covariables.

glm.family

Family for the regression.

perm

Number of permutations.

test.vars

Variables or groups of variables to test.

cf

Combining function for the partial tests.

adjust

Method for p-value adjustment.

snowfall.args

A list with parameters for the initialisation of parallelizing with package snowfall.

snowfall.seed

Start seed.

save.stat.data

Logical value, default is FALSE. Save the permutation and original test statistic.

file.save

File name for saving.

use.save.stat.data

Logical value, default is FALSE. Use the saved permutation and original test statistic.

file.use

File name for data loading.

Value

A list with

statistic

Original test data combined with cf.

df

Degree of freedom for each variable or group of test.vars.

p.value

Permutation p-value for each variable or group of test.vars.

data.perm

Permutation test data.

data.original

Original test data.

Author(s)

Frederike Fuhlbrueck f.fuhlbrueck@googlemail.com

See Also

See ResamplelogLik, varwiselogLik and expr.dev.test.


GlobalDeviance documentation built on May 2, 2019, 11:32 a.m.