Page 1 of 1

[RESOLVED] Unknown Error with linReg

Posted: Sun Jul 29, 2018 9:52 pm
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

Re: Unknown Error with linReg

Posted: Sun Jul 29, 2018 10:07 pm
by jonathon
thanks knapster,

we'll take a look.

jonathon

Re: Unknown Error with linReg

Posted: Thu Aug 30, 2018 12:42 am
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?

Re: Unknown Error with linReg

Posted: Thu Aug 30, 2018 1:40 am
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

Re: Unknown Error with linReg

Posted: Thu Aug 30, 2018 1:45 am
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

Re: Unknown Error with linReg

Posted: Thu Aug 30, 2018 4:06 am
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.

Re: Unknown Error with linReg

Posted: Thu Aug 30, 2018 8:42 pm
by knapster12
Thanks Ravi and Jonathon, the covs and blocks being the same worked well!