mxExpectationGREML error
Posted on

Forums
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)
Something's definitely not
If you enter this
installed.packages()[rownames(installed.packages())=="OpenMx",]
at the R prompt, what version number(s) do you see?
Log in or register to post comments
In reply to Something's definitely not by AdminRobK
(1) the GREML functions and
(2) I submitted the command but cannot include the result here--I keep getting the message "Your submission has triggered the spam filter and will not be accepted." See the attached file.
Log in or register to post comments
In reply to (1) the GREML functions and by carey
First of all, sorry about the
It seems your package version, package code, and help page don't match for some reason. As for why, I'm as confused as you are. I'm not able to reproduce the behavior you're reporting on my own system, but then, I'm running Windows, not Mac OSX.
Have you recently reinstalled using
source('http://openmx.psyc.virginia.edu/getOpenMx.R')
? You probably have, but if not, try that and see if the problem persists. If that doesn't help, are you able to build the package from the source repository? If so, see if that makes a difference.I will contact you via email with another hint or two.
Log in or register to post comments
In reply to First of all, sorry about the by AdminRobK
Some headway: (1) I just
(1) I just tried "source('http://openmx.psyc.virginia.edu/getOpenMx.R')" It installs version 2.0.1.4157 on the Mac (OS X 10.8.5) but version 2.2.2 on Linux.
(2) I do not get the problem with the Linux version.
Log in or register to post comments
In reply to Some headway: (1) I just by carey
good to hear
Good, glad to hear. I'll email you again with a few more thoughts.
Edit: does the problem persist with v2.0.1 on your Mac?
Log in or register to post comments