Hi forum,
I am new to statistics and R in general so please bear with me if I am not clear enough. So I am generating a 3 level full factorial design with 4 variables (P, P1, P4, INJ), and three responses (qo, qw, qg) which I am using in order to run a multiple linear regression on in R. I have attached the excel file.
My question is how do I go about plotting my predicted values against my actual values? I would like to do this in order to see how good of a fit my regression is.
I am new to statistics and R in general so please bear with me if I am not clear enough. So I am generating a 3 level full factorial design with 4 variables (P, P1, P4, INJ), and three responses (qo, qw, qg) which I am using in order to run a multiple linear regression on in R. I have attached the excel file.
Code:
# Attach file containing vartiables and responses
a<-read.csv("C:/Users/B/Desktop/Three Level FF with Responses.xls")
attach(a)
# Run a linear regression
model<-lm(qo~P+P1+P4+INJ)
# Summary of linear regression results
summary(model)