Hypothesis Help


I am trying to make my null and alternative hypothesis statement using r studio cloud but it keeps giving me this error - [Math Processing Error]. This is the code I am using

H_0: \beta_1 = 0 \qquad \text{versus} \qquad H_A: \beta_1 \neq 0.

inclosed with two $$ on each end

Does anyone know what I could be doing wrong?

H_0: \beta_1 = 0 \qquad versus \qquad H_A: \beta_1 \neq 0

looks like it might be formula behind a glm binomial model. And, of course, its something that might be used in writing up the results.

But it's not code.

Let's say you have an outcome Y that can take on either a 1 or 0 value (a binary outcome) and some number of independent covariates, X_1 ... X_n. So, a model might look like this

fit <- glm(Y ~ X1 + X2 ..., data = mydata)



will give the fit statistics, along with a p-value that you can use to decide whether to reject or fail to reject H_0. Just decide \alpha before hand.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.