README.md

expdean

Lifecycle: experimental

The experiment design and analysis package is meant for dealing with data analysis of plant science (Agriculture and Genetics) and allied field. This is born out of personal use necessicity, mainly.

Installation

You can install development version of the expdean package from Github with:

devtools::install_github("DeependraD/expdean")
library(expdean)

Agricultural research experiments analysis workflow

  1. lm_list: Fit linear models for multiple response variables in a dataframe
  2. corstars: Correlation coefficient table with significance annotation; Carried over with slight modification from: http://myowelt.blogspot.com/2008/04/beautiful-correlation-tables-in-r.html
  3. grid_arrange_share_legend: Share legend and plot multiple ggplot grobs; Copied from: http://rpubs.com/sjackman/grid_arrange_shared_legend
  4. mean_differences_lm, mean_differences_emmeans: Mean separation techniques for multiple. Some visualization techniques are also included as comment.
  5. p_annotator: Model summary table for various model types. This implements tidy techniques for regression model summary table generation (Looks alike stargazer summary table).
  6. long_stargazer: Model summary table with modified stargazer and some useful defaults.
  7. Mixed modeling when analyzing common experimental designs require estimation of heritability, BLUEs, phenotypic correlation and genotypic correlation. A solution for tidy calculation and representation of such results is implemented in trait_genetics_tidy.R.

Checklist

  1. Resolve covariate specification in trait_genetics_tidy.R.
  2. [ ] heritability_n_blues() function should accept NULL as well as arbitrary number of covariates.
  3. [ ] confirm the validity of heritability_n_blues() function in estimating heritability.
  4. Currently only 3 models are tidied (in join step) due to column name mismatch in model_summary_kabletype.R's p_annotator() function.
  5. [ ] Use metaprogramming to solve it.

Building my first package

library(available)
available("expdean")


DeependraD/expdean documentation built on Nov. 25, 2019, 12:33 a.m.