designMatrix: Internal function

Description Usage Arguments Author(s) Examples

View source: R/designMatrix.R

Description

This is an internal function. The user should not use the function directly.

Usage

1
designMatrix(lists)

Arguments

lists

The number of lists to be compared

Author(s)

Alberto Cassese, Marta Blangiardo

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## The function is currently defined as
function(lists){
rows = 2^(lists)
ncycles = rows
x = matrix(0,rows,lists)
for (k in 1:lists){   
settings = c(0,1)   
ncycles = ncycles/2   
nreps = rows/(2*ncycles)   
settings = matrix(rep(settings,nreps),nreps,
length(settings),byrow=TRUE)
settings = as.vector(settings)
#impila in un vettore settings, una colonna sotto l'altra
settings = matrix(rep(settings,ncycles),
length(settings),ncycles)
x[,lists-k+1] = as.vector(settings)
  }
return(x)
  }

sdef documentation built on May 18, 2018, 1:08 a.m.