Why does this give an error when the code is taken directly from the documentation to mxExpectationGREML?
> require(OpenMx)
> mxVersion()
OpenMx version: 2.0.1.4157
R version: R version 3.1.2 (2014-10-31)
Platform: x86_64-apple-darwin10.8.0
Default optimiser: NPSOL
> # the following are the first three commands from the Examples from
> # the documentation to mxExpectationGREML
> dat <- cbind(rnorm(100),rep(1,100))
> colnames(dat) <- c("y","x")
>
> ge <- mxExpectationGREML(V="V",yvars="y",Xvars=list("X"),addOnes=FALSE)
Error in mxExpectationGREML(V = "V", yvars = "y", Xvars = list("X"), addOnes = FALSE) :
unused arguments (yvars = "y", Xvars = list("X"), addOnes = FALSE)