Home > Software design >  What package is vm() from in R?
What package is vm() from in R?

Time:09-02

I am trying to run someone else's code, but cannot find what package contains the function vm(). It is used below with ID which is a column in data and GRM which is a genomic relationship matrix.

model10.asr <- asreml(fixed = SPIG_NOSE ~    TypeOfBirthMod:TypeOfRearing  ContempGrp   Sex_Corrected   Het,
                      random = ~ vm(ID, GRM),
                      na.action = na.method(x = "include", y = "include"), 
                      keep.order = TRUE,
                      dense = list(SheepGeneticsID = GRM),
                      data = data,
                      workspace=512e06)

I have tried searching to packages, and only found nomcluster which didn't work.

CodePudding user response:

I don't think it's a function per se, it's part of the syntax of the ASREML-R package, which is commercial (not open-source). You can find more information about it here: https://asreml.kb.vsni.co.uk/ . I have no idea if they have cheap student or academic licenses.

Some of their documentation is online, although I don't know if it will completely answer your question (e.g. search https://asreml.kb.vsni.co.uk/knowledge-base/asreml/ for "vm").

CodePudding user response:

The vm package is from thestatsmodelslibrary in R.

  •  Tags:  
  • r
  • Related