Skip to content

Commit

Permalink
fix simdata rename; examples.Rmd typos
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Oct 12, 2015
1 parent b1f454b commit 29e3760
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 34 deletions.
31 changes: 0 additions & 31 deletions build/make_example.r

This file was deleted.

2 changes: 1 addition & 1 deletion build/make_simdata.r
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,5 @@ z <- rpois(length(x), lambda)


simdata <- data.frame(y=y, x=x, g=g, z=z)
save(example, file='data/simdata.rda')
save(simdata, file='data/simdata.rda')

Binary file removed data/example.rda
Binary file not shown.
Binary file modified data/simdata.rda
Binary file not shown.
4 changes: 2 additions & 2 deletions vignettes/examples.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ simrOptions(nsim=25, progress=FALSE, observedPowerWarning=FALSE)

This vignette provides examples of some of the hypothesis tests that can be specified in `simr`. The function `doTest` can be used to apply a test to an input model, which lets you check that the test works before running a power simulation.

Documentation for the test specification functions can be found in the online help at `?tests`.
Documentation for the test specification functions can be found in the help system at `?tests`.

## Binomial GLMM with a categorical predictor

The first example comes from the online help for `glmer`. The data frame `cbpp` contains data on contagious bovine pleuropneumonia. An observation variable is added to allow for overdispersion. Note that the response is specified using `cbind` --- `simr` expects a binomial model to be in this form.
The first example comes from the help page for `glmer`. The data frame `cbpp` contains data on contagious bovine pleuropneumonia. An observation variable is added to allow for overdispersion. Note that the response is specified using `cbind` --- `simr` expects a binomial model to be in this form.

```{r}
cbpp$obs <- 1:nrow(cbpp)
Expand Down

0 comments on commit 29e3760

Please sign in to comment.