title: B Spline confusion
body: <p>I realise that there are posts on the topic of B-Splines on this board but those have actually made me more confused so I thought someone might be able to help me.</p>
  
  <p>I have simulated data for x-values ranging from 0 to 1. I'd like to fit to my data a cubic spline (<code>degree = 3</code>) with knots at 0, 0.1, 0.2, ... , 0.9, 1. I'd also like to use the B-Spline basis and OLS for parameter estimation (I'm not looking for penalised splines). </p>
  
  <p>I think I need the <code>bs</code> function from the <code>spline</code> package but I'm not quite sure and I also don't know what exactly to feed it. </p>
  
  <p>I'd also like to plot the resulting polynomial spline. </p>
  
  <p>Thanks!</p>