[RESOLVED] Unknown Error with linReg

General help and assistance with jamovi. Bug reports can be made at our issues page: https://github.com/jamovi/jamovi/issues . (If you're unsure feel free to discuss it here)
Post Reply
knapster12
Posts: 5
Joined: Thu May 17, 2018 6:19 am

[RESOLVED] Unknown Error with linReg

Post by knapster12 »

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
Attachments
RegDemo.1.csv
(26.97 KiB) Downloaded 410 times
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Unknown Error with linReg

Post by jonathon »

thanks knapster,

we'll take a look.

jonathon
knapster12
Posts: 5
Joined: Thu May 17, 2018 6:19 am

Re: Unknown Error with linReg

Post by knapster12 »

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?
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Unknown Error with linReg

Post by jonathon »

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
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: Unknown Error with linReg

Post by jonathon »

i think you need to specify that 'Enjoy' is a covariate with the covs argument:

Code: Select all

jmv::linReg(
    data = data,
    dep = "Intent",
    covs = "Enjoy")
jonathon
User avatar
Ravi
Posts: 194
Joined: Sat Jan 28, 2017 11:18 am

Re: Unknown Error with linReg

Post by Ravi »

Yup, you need to specify it in "covs" and "blocks" at the moment as follows:

Code: Select all

model <- jmv::linReg(data = data, 
                     dep = "Intent", 
                     covs = "Enjoy", 
                     blocks = list("Enjoy"), 
                     stdEst = TRUE)
I know this is pretty tedious and it is something I'd like to improve in the future.
knapster12
Posts: 5
Joined: Thu May 17, 2018 6:19 am

Re: Unknown Error with linReg

Post by knapster12 »

Thanks Ravi and Jonathon, the covs and blocks being the same worked well!
Post Reply