When I use linReg to run a model, I get an error "Error in eval(predvars, data, env) : object '.RW5qb3k' not found." The object is always a different combination of numbers and letters, and I am not sure where this is coming from.
I have attached the data as a .csv.
* I have updated R Studio, packages, etc. I clear my environment before I begin anything. Not sure where to go from here so any and all help is welcome!
model1 <- linReg(data = dat, dep = 'Intent', blocks = list(c('Enjoy')), stdEst = TRUE)
model1
[RESOLVED] Unknown Error with linReg
-
- Posts: 5
- Joined: Thu May 17, 2018 6:19 am
[RESOLVED] Unknown Error with linReg
- Attachments
-
- RegDemo.1.csv
- (26.97 KiB) Downloaded 490 times
Re: Unknown Error with linReg
thanks knapster,
we'll take a look.
jonathon
we'll take a look.
jonathon
-
- Posts: 5
- Joined: Thu May 17, 2018 6:19 am
Re: Unknown Error with linReg
I have uninstalled RStudio and re-installed, but I am still having trouble. I'm not sure if I should attempt to use an earlier version of the jmv package?
Re: Unknown Error with linReg
aargh, sorry knapster,
i totally forgot about this.
we'll take a look (and do feel free to chase us up more aggressively in future!)
jonathon
i totally forgot about this.
we'll take a look (and do feel free to chase us up more aggressively in future!)
jonathon
Re: Unknown Error with linReg
i think you need to specify that 'Enjoy' is a covariate with the covs argument:
jonathon
Code: Select all
jmv::linReg(
data = data,
dep = "Intent",
covs = "Enjoy")
Re: Unknown Error with linReg
Yup, you need to specify it in "covs" and "blocks" at the moment as follows:
I know this is pretty tedious and it is something I'd like to improve in the future.
Code: Select all
model <- jmv::linReg(data = data,
dep = "Intent",
covs = "Enjoy",
blocks = list("Enjoy"),
stdEst = TRUE)
-
- Posts: 5
- Joined: Thu May 17, 2018 6:19 am
Re: Unknown Error with linReg
Thanks Ravi and Jonathon, the covs and blocks being the same worked well!