Title: | Sudoku as an Experimental Design |
---|---|
Description: | Sudoku designs (Bailey et al., 2008<doi:10.1080/00029890.2008.11920542>) can be used as experimental designs which tackle one extra source of variation than conventional Latin square designs. Although Sudoku designs are similar to Latin square designs, only addition is the region concept. Some very important functions related to row-column designs as well as block designs along with basic functions are included in this package. |
Authors: | Ashutosh Dalal [aut, cre], Cini Varghese [aut, ctb], Rajender Parsad [aut, ctb], Mohd Harun [aut, ctb] |
Maintainer: | Ashutosh Dalal <[email protected]> |
License: | GPL (>= 2) |
Version: | 1.0.0 |
Built: | 2024-11-01 05:25:06 UTC |
Source: | https://github.com/cran/SudokuDesigns |
Check properties of an incomplete block design (IBD)
Check_IBD(Design)
Check_IBD(Design)
Design |
Provide an IBD in matrix format |
Provides C matrix (Information matrix), eigenvalues(EVs) and canonical efficiency factor (CEF) of a given IBD
library(SudokuDesigns) Design<-matrix(c(1,2,3,2,5,3,2,4,6),nrow=3,byrow=TRUE) Check_IBD(Design)
library(SudokuDesigns) Design<-matrix(c(1,2,3,2,5,3,2,4,6),nrow=3,byrow=TRUE) Check_IBD(Design)
Check properties of an incomplete row-column design (IRC)
Check_IRC(Design)
Check_IRC(Design)
Design |
Provide an IRC in matrix format |
Provides C matrix (Information matrix), eigenvalues(EVs) and canonical efficiency factor (CEF) of a given IBD
library(SudokuDesigns) Design<-matrix(c(1,2,3,2,5,3,2,4,6),nrow=3,byrow=TRUE) Check_IRC(Design)
library(SudokuDesigns) Design<-matrix(c(1,2,3,2,5,3,2,4,6),nrow=3,byrow=TRUE) Check_IRC(Design)
Moore Penrose Inverse
Check_MP_Inverse(matrix)
Check_MP_Inverse(matrix)
matrix |
Any matrix |
Provides Moore Penrose inverse of a given matrix
library(SudokuDesigns) mat<-matrix(c(1,2,3,2,5,3,2,4,6),nrow=3,byrow=TRUE) Check_MP_Inverse(mat)
library(SudokuDesigns) mat<-matrix(c(1,2,3,2,5,3,2,4,6),nrow=3,byrow=TRUE) Check_MP_Inverse(mat)
Observations Vs Columns Incidence Matrix
Check_Obsn_vs_Col_Matrix(Matrix)
Check_Obsn_vs_Col_Matrix(Matrix)
Matrix |
Any matrix |
Generates observations vs columns incidence matrix of a given design
library(SudokuDesigns) mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Obsn_vs_Col_Matrix(mat1)
library(SudokuDesigns) mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Obsn_vs_Col_Matrix(mat1)
Observations Vs Regions Incidence Matrix
Check_Obsn_vs_Reg_Matrix(Design, Region)
Check_Obsn_vs_Reg_Matrix(Design, Region)
Design |
A Sudoku design in matrix format |
Region |
A matrix of regions according to the Sudoku design |
Observations vs regions incidence matrix for a given Sudoku design and region matrix
library(SudokuDesigns) design<-matrix(c(1,2,3,4,3,4,1,2,2,1,4,3,4,3,2,1),nrow=4,ncol=4,byrow=TRUE) region<-matrix(c(1,1,2,2,1,1,2,2,3,3,4,4,3,3,4,4),nrow=4,ncol=4,byrow=TRUE) Check_Obsn_vs_Reg_Matrix(design, region)
library(SudokuDesigns) design<-matrix(c(1,2,3,4,3,4,1,2,2,1,4,3,4,3,2,1),nrow=4,ncol=4,byrow=TRUE) region<-matrix(c(1,1,2,2,1,1,2,2,3,3,4,4,3,3,4,4),nrow=4,ncol=4,byrow=TRUE) Check_Obsn_vs_Reg_Matrix(design, region)
Observations Vs Rows Incidence Matrix
Check_Obsn_vs_Rows_Matrix(Matrix)
Check_Obsn_vs_Rows_Matrix(Matrix)
Matrix |
Any matrix |
Generates observations vs rows matrix for a given design
library(SudokuDesigns) mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Obsn_vs_Rows_Matrix(mat1)
library(SudokuDesigns) mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Obsn_vs_Rows_Matrix(mat1)
Observations Vs Treatments Incidence Matrix
Check_Obsn_vs_Trt_Matrix(Matrix)
Check_Obsn_vs_Trt_Matrix(Matrix)
Matrix |
Any matrix |
Generates observations Vs treatments matrix
library(SudokuDesigns) mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Obsn_vs_Trt_Matrix(mat1)
library(SudokuDesigns) mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Obsn_vs_Trt_Matrix(mat1)
Checking Rank of a Matrix
Check_Rank(matrix)
Check_Rank(matrix)
matrix |
Any matrix |
Print the rank of the given matrix
library(SudokuDesigns) mat<-matrix(c(1,2,3,2,4,6,5,2,3),nrow=3,byrow=TRUE) Check_Rank(mat)
library(SudokuDesigns) mat<-matrix(c(1,2,3,2,4,6,5,2,3),nrow=3,byrow=TRUE) Check_Rank(mat)
Replication Matrix
Check_Replication_Matrix(matrix)
Check_Replication_Matrix(matrix)
matrix |
Any matrix |
A diagonal matrix of replications for each treatment.
library(SudokuDesigns) mat11<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat11 Check_Replication_Matrix(mat11)
library(SudokuDesigns) mat11<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat11 Check_Replication_Matrix(mat11)
Check Properties of Sudoku Designs
Check_Sudoku_Design(Design, Region)
Check_Sudoku_Design(Design, Region)
Design |
Give the Sudoku design in a matrix format |
Region |
Provide a Region matrix corresponding to Sudoku design |
Design along with design parameters, C matrix (Information matrix), eigenvalues(EVs) and canonical efficiency factor (CEF) of a given Sudoku design
library(SudokuDesigns) design<-matrix(c(1,2,3,4,3,4,1,2,2,1,4,3,4,3,2,1),nrow=4,ncol=4,byrow=TRUE) region<-matrix(c(1,1,2,2,1,1,2,2,3,3,4,4,3,3,4,4),nrow=4,ncol=4,byrow=TRUE) Check_Sudoku_Design(design,region)
library(SudokuDesigns) design<-matrix(c(1,2,3,4,3,4,1,2,2,1,4,3,4,3,2,1),nrow=4,ncol=4,byrow=TRUE) region<-matrix(c(1,1,2,2,1,1,2,2,3,3,4,4,3,3,4,4),nrow=4,ncol=4,byrow=TRUE) Check_Sudoku_Design(design,region)
Find tupple occurances in a given matrix rows
Check_Tupple(matrix, tupple)
Check_Tupple(matrix, tupple)
matrix |
Any matrix |
tupple |
A vector of numbers |
Number of times a tupple occurs within the rows of a given matrix
mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Tupple(mat1,c(1,2))
mat1<-matrix(c(1,2,3,4,1,3,6,2,8,1,8,3),nrow=4,byrow=TRUE) mat1 Check_Tupple(mat1,c(1,2))