Demo entry 6718095

12

   

Submitted by anonymous on Mar 01, 2018 at 17:11
Language: RHTML. Code size: 361 Bytes.

## problem 1   
# fit a model  
x=c(137,107,132,135,115,103,102,65,149,85,173,124,157,184,112,80,165,160,157,119)  
y=c(212,241,215,225,250,241,237,282,206,246,194,241,196,193,224,257,200,190,208,224)  
g = lm(y~x)  
summary(g)  
# scatter plot with regression line  
plot(x,y,xlab="Plant_density",ylab="Cob_weight",col="purple")  
abline(g,col="red")  

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).