| designDiagram-class | R Documentation |
designDiagram class and some basic methodsObjects of class designDiagram as generated by DD is a list with entries as specified below.
responseLogical stating whether a response variable was present.
termsNamed vector with all terms in the design.
random.termsVector with the random terms in the design.
relationsNamed matrix with relations between variables with the following interpretation: "0"=linear indepent, "<"=row term is a subspace of column, "<-"=row term is a subspace of column term and no other terms are inbetween, ">" and "->" the similar interpretatioin between columns and rows, name=name of minimum between row and column term.
innerNamed matrix of squared inner products of subspaces with nesting subspaces removed. Rounded at order of eps in the call to link{DD}. Used to decide orthogonality of the design.
NparmNamed vector with the number of parameters for the terms.
dfNamed vector with the degrees of freedom for the terms.
SSNamed matrix with Sum-of-Squares if a response variable was specified.
MSSNamed matrix with Mean-Sum-of-Squares if a response variable was specified.
pvalueNamed matrix with p-values for Type-I F-tests. p-values are stated at the collapsed nesting, but F-test are done against the most coarse nested random effect.
sigma2Named vector of random effects variance estimates.
varcovNamed list of variance-covariance matrix for fixed effects relative to each of the random effects. Rounded at order of eps.
coordinatesData frame with node coordinates of the terms. Initialized in Sugiyama layout.
## S3 method for class 'designDiagram' print(x, ...) ## S3 method for class 'designDiagram' summary(object, ...) ## S3 method for class 'designDiagram' update(object, ...) ## S3 method for class 'designDiagram' plot( x, circle = "none", pvalue = (circle == "MSS"), sigma2 = NULL, kill = ~1, ca = FALSE, max.area = NULL, relative = 0.01, color = NULL, circle.scaling = 1, arrow.type = arrow(angle = 20, length = unit(4, "mm")), xlim = c(0, 1), ylim = c(0, 1), horizontal = TRUE, ... )
x |
object of class |
... |
not used. |
object |
object of class |
circle |
character specifying which circles to draw at the terms: |
pvalue |
boolean specifying whether p-values should be inserted on the graphs. This is only possible if a response variable was specified. Defaults to |
sigma2 |
vector of random effects variances. Defaults to |
kill |
formula specifying which cirlces not to plot. Defaults to |
ca |
boolean deciding whether collinearity analysis is visualized. If |
max.area |
numeric specifying the used maximal area of circles. If |
relative |
positive numeric, which specifies needed relative increase for an area to be visualized in the collinearity analysis. Defaults to |
color |
color of circles when |
circle.scaling |
numeric specifying size scaling of circles. Defaults to |
arrow.type |
specifying arrow heads via |
xlim |
x-range of diagram plot. Defaults to |
ylim |
y-range of diagram plot. Defaults to |
horizontal |
boolean specifying if the design diagram should be drawn horizontally or vertically. Defaults to |
For plot.designDiagram the options circle="SS" and circle="MSS" are only available if a response variable was specified for the design.
For circle="I" and circle="I2" the color of the circles visualize the coefficient of variation of the informations. For the computation of the informations the variances of the random effects are either estimated (if a response variable is present), all set to 1 (otherwise), or given via the option sigma2.
If color=NULL and ca=FALSE, then the defaults colors are "lightgreen" for Sum-of-Squares, "lightblue" for Mean-Sum-of-Squares, and a gradient from "limegreen" to "orange" for information spread. To specify a different color gradient in the latter case, then give a vector of two colors.
For update.designDiagram the second argument should be a data frame with new coordinates. This can be usefull for manually setting the coordinates for plotting.
DD
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.