knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(mldoeR)
This is the mldoeR
package. It contains a catalog of regular four-and-two-level designs.
It also contains useful functions to handle and analyze those designs.
For visualization purposes, you might want to generate a search-table.
The searchTable()
function makes this possible for two-level designs.
The search-table for $2^{6-2}$ designs of resolution $III$ looks like this.
st <- searchtable(k = 4, p = 2, R = 3) print(st)
If you want to generate search-table for mixed-level designs, the mSearchtable()
function is there.
For example, you can generate the search-table for $4^{1}2^{5}$ designs of resolution $III$ in $2^5$ runs.
mST <- mixed_searchtable(m = 1, k = 5, p = 2, R = 3) print(mST)
In these search-table, the generators are presented as strings.
However, you can easily get the number representation of a generator, from its string, using the char2num()
function.
gen = "acd" char2num(gen)
The num2char()
function allows you to do the invert operation.
num2char(13)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.