Description Usage Arguments Value Author(s) References See Also Examples

View source: R/rpt.remlLMM.adj.R

Calculates repeatability from a linear mixed-effects models fitted by REML (restricted maximum likelihood).

1 | ```
rpt.remlLMM.adj(formula, grname, data, CI=0.95, nboot=1000, npermut=1000)
``` |

`formula` |
Formula as used e.g. by lmer. The grouping factor of interest needs to be included as a random effect, e.g. '(1|groups)'. Covariates and additional random effects can be included to estimate adjusted repeatabilities. |

`grname` |
A character string or vector of character strings giving the name(s) of the grouping factor(s), for which the repeatability should be estimated. Spelling needs to match the random effect names as given in |

`data` |
A dataframe that contains the variables included in the formula argument. |

`CI` |
Width of the confidence interval (defaults to 0.95). |

`nboot` |
Number of parametric bootstraps for interval estimation. Defaults to 1000. Larger numbers of permutations give a better asymtotic CI, but may be very time-consuming. |

`npermut` |
Number of permutations used when calculating asymptotic |

Returns an object of class rpt that is a a list with the following elements:

`datatype` |
Response distribution (here: "Gaussian"). |

`method` |
Method used to calculate repeatability (here: "REML"). |

`CI` |
Width of the confidence interval. |

`R` |
Point estimate for repeatability. |

`se` |
Approximate standard error ( |

`CI.R` |
Confidence interval for repeatability. |

`P` |
Approximate |

`R.boot` |
Parametric bootstrap samples for |

`R.permut` |
Permutation samples for |

Holger Schielzeth ([email protected]) & Shinichi Nakagawa ([email protected])

Carrasco, J. L. and Jover, L. (2003). *Estimating the generalized concordance correlation coefficient through variance components*. Biometrics 59: 849-858.

Faraway, J. J. (2006). *Extending the linear model with R*. Boca Raton, FL, Chapman & Hall/CRC.

Nakagawa, S. and Schielzeth, H. (2011) *Repeatability for Gaussian and non-Gaussian data: a practical guide for biologists*. Biological Reviews 85: 935-956.

rpt.mcmcLMM, print.rpt, rpt, rpt.adj

1 2 3 4 5 6 7 8 9 10 11 12 | ```
## Not run:
# repeatability estimation for tarsus length - a very high R
data(BodySize)
(rpt.BS <- rpt.remlLMM.adj(Tarsus ~ Sex + (1|BirdID), "BirdID", data=BodySize, nboot=10, npermut=10))
# reduced number of nboot and npermut iterations
# repeatability estimation for weight (body mass) - a lower R than the previous one
data(BodySize)
(rpt.Weight <- rpt.remlLMM.adj(Weight ~ Sex + (1|BirdID), "BirdID", data=BodySize, nboot=10, npermut=10))
# reduced number of nboot and npermut iterations
## End(Not run)
``` |

rptR documentation built on May 31, 2017, 2:53 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.