I'm new to R and don't see a way to load these packages in SPSS. I need to run a Tobit regression, but get the error message "Error: The R AER package is required but could not be loaded."
If I type in the syntax window, " install.packages ("AER"). " I get the error message ">Error # 1. Command name: install
>The first word in the line is not recognized as an SPSS Statistics command.
>Execution of this command stops."
If I type in the syntax window:"
BEGIN PROGRAM R
install.packages ("lmtest")
END PROGRAM.
I get this error:
Installing package into 'C:/Users/ckcln/AppData/Roaming/IBM/SPSS Statistics/one/extensions'
(as 'lib' is unspecified)
Error in contrib.url(repos, "source") :
trying to use CRAN without setting a mirror
Calls: install.packages -> contrib.url
Any help is appreciated,
Clint
------------------------------
Clint Cook
------------------------------