Graphing Johnson-Neyman plots in Jamovi

Discuss statistics related things
Post Reply
schaden
Posts: 1
Joined: Fri Mar 15, 2024 1:38 pm

Graphing Johnson-Neyman plots in Jamovi

Post by schaden »

Hi -
I am teaching moderation using Jamovi. I attempted to create Johnson Neyman plots (code below) using the Rj module but get the error "trying to use CRAN without setting a mirror." What am I doing wrong?
Thanks!
Sara

#install and load necessary packages
install.packages("jtools")
library(jtools)

#fit your regression model
model <- lm(dependent_variable ~ predictor_variable + moderator_variable, data = your_data)

#create Johnson-Neyman plot
plot_jn(model, pred = "moderator_variable", modx = "predictor_variable")
User avatar
mcfanda@gmail.com
Posts: 531
Joined: Thu Mar 23, 2017 9:24 pm

Re: Graphing Johnson-Neyman plots in Jamovi

Post by mcfanda@gmail.com »

If you are interested, Jn plot will be in gamlj3 in next version
dregelyi
Posts: 5
Joined: Thu Mar 14, 2024 6:56 am

Re: Graphing Johnson-Neyman plots in Jamovi

Post by dregelyi »

Hi,
I have the same problem with package 'rsm' and the error message "trying to use CRAN without setting a mirror."
How could it be solved?
BR,
Agota
Post Reply