Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • rcall error: "too many numeric literals"

    Hi all --- I am attempting to use rcall, and wish to begin by bringing vectors/variables from Stata to R. My vector X is also a matrix X. When I use the code below, to send R my variable X, I get the error "too many numeric literals".

    Code:
    rcall: Y = st.var(X)
    If instead I use the code below, to send R my matrix X, I get the error "Y not found". Though occasionally I'm pretty sure I've gotten the numeric literals error for this matrix attempt, also. And in neither case does it help if I replace = with <-.

    Code:
    rcall: Y = st.matrix(X)
    Am I using this command horribly wrong? Missing something obvious? Thanks in advance!

  • #2
    Note: In almost identical settings (matrix/vector 1000 observations long, standard normal), I sometimes get the error "e not found" when attempting the st.var() approach. No idea what e is.

    Comment


    • #3
      Now cross-listed here: https://stackoverflow.com/questions/...-communication

      Comment


      • #4
        For future users: I'm not entirely sure what happened with the R session being called by Stata, but clearing the R-related memory is possible with the command rcall clear. Once I ran this, I stopped getting the strange errors. Solution from this thread: https://stackoverflow.com/questions/...-communication

        Comment

        Working...
        X