The following warnings / errors messages were generated with the multimed() function:
1: In beta3 + kappa EM.0 + sigma sqrt(VM.0) + WXterms :
Recycling array of length 1 in vector-array arithmetic is deprecated.
Use c() or as.vector() instead.
2: In beta3 + kappa EM.1 + sigma sqrt(VM.1) + WXterms :
Recycling array of length 1 in vector-array arithmetic is deprecated.
Use c() or as.vector() instead.
I replaced WXterms by as.vector(WXterms) and it worked.
R version: 3.5.2 OS: Linux Debian 9
The following warnings / errors messages were generated with the multimed() function:
1: In beta3 + kappa EM.0 + sigma sqrt(VM.0) + WXterms : Recycling array of length 1 in vector-array arithmetic is deprecated. Use c() or as.vector() instead.
2: In beta3 + kappa EM.1 + sigma sqrt(VM.1) + WXterms : Recycling array of length 1 in vector-array arithmetic is deprecated. Use c() or as.vector() instead.
I replaced
WXterms
byas.vector(WXterms)
and it worked.