Description Usage Arguments Value Note See Also Examples

View source: R/estimateContrasts.R

Calculates and prints Tukey multiple confidence intervals for contrasts in one or two-way ANOVA.

1 2 3 4 5 6 7 8 | ```
estimateContrasts(
contrast.matrix,
fit,
row = TRUE,
alpha = 0.05,
L = NULL,
FUN = identity
)
``` |

`contrast.matrix` |
a matrix of contrast coefficients. Separate rows of the matrix contain the contrast coefficients for that particular contrast, and a column for level of the factor. |

`fit` |
output from the |

`row` |
if |

`alpha` |
the nominal error rate for the multiple confidence intervals. |

`L` |
number of contrasts. If NULL, L will be set to the number of rows in the contrast matrix, otherwise L will be as specified. |

`FUN` |
optional function to be applied to estimates and confidence intervals. Typically for backtransformation operations. |

Returns a matrix whose rows correspond to the different contrasts being estimated and whose columns correspond to the point estimate of the contrast, the Tukey lower and upper limits of the confidence interval, the unadjusted p-value, the Tukey and Bonferroni p-values.

: This function is no longer exported as it should never be called by the user. It will ultimately be removed.

`summary1way`

, `summary2way`

, `multipleComp`

1 2 3 4 5 6 7 | ```
## computer data:
data(computer.df)
computer.df = within(computer.df, {selfassess = factor(selfassess)})
computer.fit = lm(score ~ selfassess, data = computer.df)
contrast.matrix = matrix(c(-1/2, -1/2, 1), byrow = TRUE, nrow = 1, ncol = 3)
contrast.matrix
s20x:::estimateContrasts(contrast.matrix,computer.fit)
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.