I'm interested in fitting a line to some data. There is a built-in function in R lm() that gives me both the best-fit slope and intercept, however, I would like to determine the best fit intercept GIVEN a specified value of the slope. Is there an easy way to do this?(adsbygoogle = window.adsbygoogle || []).push({});

I apologize if this is in the wrong forum. I know it's not exactly "programming" but I don't know a more appropriate place to post this.

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Linear regression in R

Loading...

Similar Threads - Linear regression | Date |
---|---|

Linear Regression, etc : Standard vs ML Techniques | Dec 27, 2017 |

C/++/# Rounding error making my graphics barely off? | Feb 23, 2017 |

Fortran How to change data from linear scale to log scale | Nov 30, 2016 |

Linear Regression Error on Excel | Apr 28, 2014 |

F90/C Weighted Linear Regression Code | Nov 2, 2009 |

**Physics Forums - The Fusion of Science and Community**