badmf.sims.cross: Cross Simulation

Description Usage Arguments Author(s) Examples

Description

A function to simulate data with a crossed layout.

Usage

1
2
badmf.sims.cross(n, d, K = 2, signal.scale = 10, non.scale = 1,
  rotate = FALSE, class.equal = TRUE, ind = FALSE)

Arguments

n

the number of samples.

d

the number of dimensions.

K

the number of classes in the dataset.

signal.scale

the scaling for the signal dimension. Defaults to 10.

non.scale

the scaling for the non-signal dimensions. Defaults to 1.

class.equal

whether the number of samples/class should be equal, with each class having a prior of 1/K, or inequal, in which each class obtains a prior of k/sum(K) for k=1:K. Defaults to TRUE.

ind

whether to sample x and y independently. Defaults to FALSE.

Author(s)

Eric Bridgeford

Examples

1
2
3
library(badmf)
sim <- badmf.sims.cross(100, 3)
X <- sim$X; Y <- sim$Y

ebridge2/badmf documentation built on June 4, 2019, 8:53 a.m.