Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR R

predict y given model in r

model <- lm(y ~ x1, data = df)
df2 <- data.frame(x1 = 30)
predict(model, df2)
 
PREVIOUS NEXT
Tagged: #predict #model
ADD COMMENT
Topic
Name
1+5 =