Various functions I occasionally need.

create_proptable | proportion tibbles |

dot-rsquared.glmm | Marginal and conditional r-squared for glmm given fixed and... |

family_link.stop | stop execution if unable to calculate variance for a given... |

ggCaterpillar | caterpillar plot for mixed effects models borrowed (stolen)... |

grid_arrange_shared_legend | grid arrange (from gridExtra) with common legend |

lm.beta.lmer | equivalent of lm.beta for mixed models. |

make_tcplot_data | time course plots for eye tracking |

mround | rounding to the nearest |

read_from_drive | read's csv from drive file. |

rowSums_na | rowSums with na.rm = TRUE except for when all cols = NAs... |

r.squared | R-squared and pseudo-rsquared for (generalized) linear... |

rsquared.glmm | R-squared and pseudo-rsquared for a list of (generalized)... |

r.squared.lm | Marginal r-squared for lm objects |

r.squared.lme | Marginal and conditional r-squared for lme objects |

r.squared.merMod | Marginal and conditional r-squared for merMod objects |

tcplot | time course plots for eye tracking |

tcplot_nolines | time course plots for eye tracking |

t.stat | extract t values for fixed effects of lmer object |

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.