Print a matrix of pair-wise comparisons based on an 'sma' fit.

1 | ```
multcompmatrix(smfit, sort = TRUE)
``` |

`smfit` |
An object of class 'sma', fit with |

`sort` |
Logical. Specifies whether or not to sort groups from smallest to largest value based on the parameter of interest (slope, elevation or mean fitted value). |

A matrix of comparisons is drawn, based on the P values of the pair-wise tests between levels of the grouping variable. An 'X' indicates P < 0.05, 'o' indicates 0.05 < P < 0.1.

Invisibly returns the (character) matrix.

Remko Duursma and Daniel Falster.

1 2 3 4 5 6 7 8 9 10 | ```
# Print the matrix of comparisons:
data(leaflife)
sm1 <- sma(lma ~ longev + site, data=leaflife, multcomp=TRUE)
multcompmatrix(sm1)
# Write the matrix to a file like this:
## Not run:
capture.output(multcompmatrix(sm1), file="sm1matrix.txt")
## End(Not run)
``` |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.

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.