I have a problem above. The data is not here, so I only want the way hoe to do i
ID: 3364765 • Letter: I
Question
I have a problem above. The data is not here, so I only want the way hoe to do it, the commands in R studio.
Do it based on R studio:
The data file will contain one line for each subject ID. The line will contain the subject ID, the value of the independent variable, and the value of the dependent variable. A transformation of either IV or DV or both may be required. You should read the text for suggestions on fitting a model. A lack of fit test should be applied if there are repeated values in the data sets. It is your group’s responsibility to find repeated (or near repeated) independent variable values.
Explanation / Answer
it can be done by cammand GLM(y~X1,data),and use family binomial if binary responce,poisson if count response as well as link according to response varianble y
or use LM cammand lm(y~X1,data)
convert dependent variable in level form as X=" 0"---IV required, "1"--DV required, "2"--both required
and then applied command X1=as.factor(X)
if data is given in group then you can convert it in row data using cammand repeat(x,fre) or using GLM you can add frequency as weights.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.