Description Usage Arguments See Also Examples

Calculates main fitted effects for individual factors and two-way interaction fitted effects for all pairs of factors. Any number of factors may be input. Three-way, four-way, etc. fitted effects are not shown, even when more than two factors are given.

1 |

`y` |
Vector of responses whose fitted effects are shown. |

`...` |
Vectors of different factors. |

`dec` |
Number of decimal places to print. |

lm, fitted

1 2 3 4 5 6 7 8 9 10 | ```
# Create a data set with two factors (age and gender)
race<-data.frame(c(1.02,.99,1.11,1.30,1.09,1.26,1.21,1.19,1.30,1.45,1.34,1.49),
c('M','M','M','M','M','M','F','F','F','F','F','F'),
c('under 50','under 50','under 50','over 50','over 50','over 50',
'under 50','under 50','under 50','over 50','over 50','over 50'))
names(race)<-c("time","gender","age")
# Show fitted effects for age, gender and age & gender
means(race$time, race$age, race$gender)
``` |

Rlab documentation built on May 30, 2017, 3:26 a.m.

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.