null_permute: Generate null data by permuting a variable.

Description Usage Arguments Value See Also Examples

View source: R/method-permute.r

Description

Null hypothesis: variable is independent of others

Usage

1

Arguments

var

name of variable to permute

Value

a function that given data generates a null data set. For use with lineup or rorschach

See Also

null_lm, null_dist

Examples

1
2
3
4
5
data(mtcars)
library(ggplot2)
ggplot(data=rorschach(method=null_permute("mpg"), n = 3, true=mtcars)) +
geom_boxplot(aes(x=factor(cyl), y=mpg, fill=factor(cyl))) +facet_grid(.~.sample) +
theme(legend.position="none", aspect.ratio=1)

Example output



nullabor documentation built on Feb. 26, 2020, 1:07 a.m.