search for: fitnormalreg

Displaying 2 results from an estimated 2 matches for "fitnormalreg".

2007 Aug 28
1
FW: How to fit an linear model withou intercept
...; > added to the y values) and the intercept should be close to four. > x<-0:10 > y<-x+4+rnorm(11,0,1) > plot(x,y) > title("Original data") > > # Fit a "normal" regression line to the data and display # the > regression line on the scatter plot > fitNormalReg<-lm(y~x) > abline(fitNormalReg) > > # Fit a regression line in which the intercept has been # forced to be > zero and display the line on the scattter # plot. > fitZeroInt<-lm(y~-1+x) > abline(fitZeroInt,lty=2) > > # Compare fits. > summary(fitNormalReg) > summa...
2007 Aug 23
7
Histogram
Hello, I wanted to create a histogram, but somehow I got stuck... The interval limits are: x = 1, 2, 3, 3.5, 4.5, 5, 5.5 The interval widths are therefore: 1, 1, 0.5, 1, 0.5, 0.5 Nothing I tried worked... Can anyone help me please? Thanks Tobias -- View this message in context: http://www.nabble.com/Histogram-tf4315900.html#a12288850 Sent from the R help mailing list archive at Nabble.com.