simple regression with no predictors

Discuss statistics related things
Post Reply
j0hn
Posts: 12
Joined: Tue Jul 23, 2019 3:20 am
Location: Chiang Mai, Thailand

simple regression with no predictors

Post by j0hn »

I'm taking the COursera course on logistic regression (https://www.coursera.org/specialization ... lic-health)

One of the first exercises is using this code to create a model with no predictors:

"The “1” is just R’s way of saying that there’s only an intercept term in the model. To get the output, though, you need the “summary” command as well. To do this, you need to make an R object out of the model. I’ve called this object “m”.

glm(dm ~ 1, family=binomial (link=logit))"

Is it possible to do this in jamovi? Looks like something has to be entered as a covariate.
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: simple regression with no predictors

Post by jonathon »

hi,

no sorry, an 'intercept only' model isn't very common in practice. just take a mean, or perform a one-sample t-test.

cheers

jonathon
j0hn
Posts: 12
Joined: Tue Jul 23, 2019 3:20 am
Location: Chiang Mai, Thailand

Re: simple regression with no predictors

Post by j0hn »

thanks
User avatar
jonathon
Posts: 2613
Joined: Fri Jan 27, 2017 10:04 am

Re: simple regression with no predictors

Post by jonathon »

i think you can do this in GAMLj though.

cheers
Post Reply