This function tests all pairwise contrast coefficients for orthogonality. The function tells the user which pair of contrasts are not orthogonal.

1 |

`contr` |
A matirx, wiht k-1 rows (one for each contrast) and k columns one for each level of a factor. |

`round` |
To test if the sum of the products of the coefficients is zero the sum is rounded using this value as digits argument for round. |

For all pairs of contrasts coefficients the sum of the products of the coefficients is calculated and compared if it is zero or not.

a logical

There are more elegant solutions to this problem but this one tells the user which pairs of contrasts are not orthogonal.

none

1 2 3 4 5 |

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.