Hi Martin,
Thanks for the useful comments. It has greatly improved the efficiency
of my functions. I am sorry that I forgot to paste the functions varG
and others which I have done here for reproducibility.
#
## a function to calculate h2
## (heritability)
###
Hi R-users,
### reproducible example:
library(gmp)
library(matlab)
library(Matrix)
library(foreach)
library(MASS)
library(mvtnorm)
#
## A function to create a field experiment
## Returns a data frame, called matdf
##
setup
2 matches
Mail list logo