knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "NEWS-" )
prepScores2 is a drop in replacement for prepScores. The only difference is the family argument should be text. gaussian()
becomes "gaussian"
. Although the former will temporarily still work. Eventually I'd like to merge prepScoresX and prepCox into this function as 90+% of the code is the same.
apply
code with a faster vectorized version.any(is.na(Z))
with anyNA(Z)
range
with min
and max
t(x)%*%y
with crossprod(x, y)
prepScores2
impute_to_mean
code does NOT make a copy of the genotype matrix if it is a matrixbinomial
casesAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.