Re: [D-RUG]: Digest for davis-rug@googlegroups.com - 6 updates in 2 topics

5 views
Skip to first unread message

Julin Maloof

unread,
Jun 17, 2014, 7:27:11 PM6/17/14
to davi...@googlegroups.com
OK so I missed the point of the original question and some good solutions have been posted since.  Here is another option using kable (and then knitr, etc):

```{r setup}
library(nlme)
fm1 <- lme(distance ~ age, data = Orthodont) # random is ~ age
```

### Random Effects
```{r random_effects, results='asis', echo=FALSE}
kable(VarCorr(fm1))
```

### Fixed Effects
```{r fixed_effects, results='asis', echo=FALSE}
kable(summary(fm1)$tTable)
```


Bonnie Dixon

unread,
Jun 21, 2014, 3:44:07 PM6/21/14
to davi...@googlegroups.com
Thanks, Julin and Jamie, for the further ideas.  It is good to know that knitr's kable can handle this without needing to change the class of the VarCorr data object.  I have a number of options now.

Bonnie


--
Check out our R resources at http://www.noamross.net/davis-r-users-group.html
---
You received this message because you are subscribed to the Google Groups "Davis R Users' Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to davis-rug+...@googlegroups.com.
Visit this group at http://groups.google.com/group/davis-rug.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages