Hi, Im very new to R and trying to use it to create a linear regression model based on some historic data, I then want to use this model to attribute a pass or fail outcome to a new data set.

Historic data set:

Variable1, Variable2, Variable3, Variable4, Variable5, Variable6,Outcome

Future data set:

Variable1, Variable2, Variable3, Variable4, Variable5, Variable6

i cant find out how to use the the model that i have created based on the historic data to apply the outcome category to the future data set. I want to add this as a new column to the future data set.

the reason i need to apply outocmes to each of the rows of data in the future data set is that i need to use that outcome to filter and then further investigate.

any help that anyone could provide or point me in the right direction would be appreciated.

Thanks,

F

my model code is:

fModel = glm(Outcome + Variable2 + Variable3, data = ADataSet, family=binomial)