title: Can we set / fix the coefficients in a regression equation in Python
body: <p>I've been trying to find a way of specifying pre-defined coefficients in a OLS/GLS regression in Python. I can do this in R using <code>offset</code>, but there doesn't seem to be anything similar in Python.</p>
  
  <p>R equivalent:</p>
  
  <pre><code>model=lm(y~x+offset(0.2*z))
  </code></pre>
  
  <p>So in this example x and z are our independent variables, and x is predicted by the model but we have specified the impact of z is 0.2</p>