Page 1 of 1

Mixed-models - R code

Posted: Fri Aug 06, 2021 8:26 am
by JTJTJT
Hi everyone.

I did a mixed-models analysis in Jamovi.

I wonder if I can access to the R used to run that analysis?

Thanks,
JT

Re: Mixed-models - R code

Posted: Fri Aug 06, 2021 1:32 pm
by JTJTJT
Ok, found it. But I am troubles running it in R. Any suggestions? thanks

> install.packages("gamlj")
Installing package into ‘C:/Users/....’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘gamlj’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/ ... g-packages

Re: Mixed-models - R code

Posted: Mon Aug 09, 2021 7:49 am
by jonathon
gamlj isn't available from CRAN just yet, but you should be able to install it with the remotes package. install the remotes package first if you haven't already:

install.packages('remotes')

then once you've done that, you should be able to install gamlj with:

remotes::install_github('gamlj/gamlj')

cheers

jonathon

Re: Mixed-models - R code

Posted: Mon Aug 09, 2021 5:16 pm
by MAgojam
jonathon wrote:then once you've done that, you should be able to install gamlj with:
remotes::install_github('gamlj/gamlj')
Hi, Jonathon.
Marcello, some time ago made some changes, this step should find and install gamlj:

Code: Select all

remotes::install_github(
  repo = "mcfanda/gamlj",              
  dependencies = TRUE,                 
  force = TRUE,
  upgrade_dependencies = TRUE          
)
packageVersion("gamlj")
Cheers,
Maurizio

Re: Mixed-models - R code

Posted: Mon Aug 09, 2021 6:49 pm
by JTJTJT
Thank you, Jonathan.

Well, I have faced other issues... but I guess I will just wait. :D BR