title: In R: How can I plug in values for my independent variables in a linear model?
body: <p>I am working with a linear model that has 3 variables and interactions. Instead of manually typing the formula out and typing in values for each of the variables, say X Y and Z, how can I tell R to give me the predicted value for a given X Y and Z?</p>
  
  <p>I.e. 
  if </p>
  
  <pre><code>model=lm(VP~G+P+Z+G:Z+P:Z+G:P+P:G:Z,data=xyz)
  
  '[output with beta coefficients]'
  </code></pre>
  
  <p>how can I pass in value of G P and Z to the linear model without manually typing in each term's individual beta coefficients? </p>