title: bootstrap a linear regression
body: <p>I am trying to run a bootstrap from a linear regression in R. The code I have so far is</p>
  
  <pre><code>hprice&lt;-lm(dat[,1]~dat[,3]+dat[,4]+dat[,5]+dat[,6])
  print (hprice)
  pricefunc&lt;-function(data,ind) lm(data[ind,1]~data[ind,3]+data[ind,4]+data[ind,5]+data[ind,6])
  hpboot&lt;-boot(dat,pricefunc, 1000)
  </code></pre>
  
  <p>this doesn't seem to work.</p>
  
  <p>I don't really understand the statistic argument and I would say this is where I am going wrong.</p>
  
  <p>thanks</p>