Skip to content

Commit

Permalink
Update model call.
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Jan 28, 2019
1 parent d3f415e commit ea6ed6d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
10 changes: 7 additions & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ To use the `iccbeta` package, load it into _R_ using:
library("iccbeta")
```

From there, the `icc_beta()` function can be called to compute the
intraclass correlation:
From there, the `icc_beta()` function can be called using either `lmer()`
model object or individual components to compute the intraclass correlation:

```{r sample-call, eval = FALSE}
results = icc_beta(X, l2id, T, vy)
# Automatically calculate icc from model
results_model = icc_beta(<lmer-model>)
# Calculate icc from individual terms.
results_manual = icc_beta(X, l2id, T, vy)
```

## Authors
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,16 @@ To use the `iccbeta` package, load it into *R* using:
library("iccbeta")
```

From there, the `icc_beta()` function can be called to compute the
intraclass correlation:
From there, the `icc_beta()` function can be called using either
`lmer()` model object or individual components to compute the intraclass
correlation:

``` r
results = icc_beta(X, l2id, T, vy)
# Automatically calculate icc from model
results_model = icc_beta(<lmer-model>)

# Calculate icc from individual terms.
results_manual = icc_beta(X, l2id, T, vy)
```

## Authors
Expand Down

0 comments on commit ea6ed6d

Please sign in to comment.