Description Usage Arguments Examples
Splits the data into subsets according to the X levels, compute mean and variance of the response for each.
1 2 3 4 5 6 7 8 9 10 |
formula |
a formula, such as |
data |
a data frame |
obj |
an |
formula |
mean-vairance relationship, for example, |
1 2 | meanvar(Y ~ X, restaurant)
plot(meanvar(Y ~ X, restaurant), sd ~ mean + I(mean^2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.