Here's my screen after trying a minimal example:
`
#Trivial data.frame
bob=data.frame(x=c(1,2,3),y=c(3,4,5))
#Just testing if it works:
stata_command="reg y x"
#Need to give the path for the stata command:
chooseStataBin()
[1] ""
options(RStata.StataPath = "/Applications/Stata 16/StataSE.app/Contents/MacOS/stata-se")
options(RStata.StataVersion = 16)
stata(stata_command,data.in=bob)
sh: /Applications/Stata: No such file or directory
Error in seq.int(cutpoints[1] + 1, cutpoints[2] - 1) :
'from' must be a finite number
traceback()
1: stata(stata_command, data.in = bob)
`
This error doesn't give me much to work with, but I suspect given the "No such file or directory" comment that somewhere the code is screwing up because it's not expecting a space in the Stata path. (Why the idiots at Stata decided to make their default install location have a space in it I don't know.)
Here's my screen after trying a minimal example:
`
This error doesn't give me much to work with, but I suspect given the "No such file or directory" comment that somewhere the code is screwing up because it's not expecting a space in the Stata path. (Why the idiots at Stata decided to make their default install location have a space in it I don't know.)