knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
The package is used for statistical analysis of Plant Breeding experiments.
Package Website https://nandp1.github.io/gpbStat/
Note: In the latest version 0.3.1 estimation of Kings Variance is not included.
Install latest package from Github through
install.packages("devtools") library(devtools) install_github("nandp1/gpbStat")
Install gpbStat from CRAN with:
install.packages("gpbStat")
Line by Tester analysis (only crosses).
# Loading the gpbStat package library(gpbStat) # Loading dataset data(rcbdltc) ## Now by using function ltc we analyze the data. ## The first parameter of `ltc` function is "data" followed by replication, line, tester and dependent variable(yield) results1 = ltc(rcbdltc, replication, line, tester, yield) ## Viewing the results results1
# Similarly we analyze the line tester data containing only crosses laid out in Alpha lattice design. # Load the package library(gpbStat) # Loading dataset data("alphaltc") # Viewing the Structure of dataset str(alphaltc) # There are five columns replication, block, line, tester and yield. ## Now by using function ltc we analyze the data. ## The first parameter of `ltc` function is "data" followed by replication, line, tester, dependent variable(yield) and block. ## Note: The "block" parameter comes at the end. results2 = ltc(alphaltc, replication, line, tester, yield, block) ## Viewing the results results2
# Line x Tester analysis for multiple traits laid in Alpha lattice design. # Load the package library(gpbStat) #Load the dataset data("alphaltcmt") # View the structure of dataframe. str(alphaltcmt) # Conduct Line x Tester analysis result3 = ltcmt(alphaltcmt, replication, line, tester, alphaltcmt[,5:7], block) # View the output result3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.