-2
My data fits easily by a straight line, but even better by 2, dividing the data. I need to divide the data into 2 parts, thus: concentrations (x) up to 700 ppm and concentrations > or = 700 ppm. And I may have to change this 700, like the border between straight lines.
What is the simplest way to get a graph showing two linear lines and their equations and R 2 ?
EDIT: I am trying to develop the solution with R (I accept other forms).
I created a subset of my <700 data and am adjusting a linear model here.
Welcome to Stackoverflow! Unfortunately, this question cannot be reproduced by anyone trying to answer it. Please, take a look at this link and see how to ask a reproducible question in R. So, people who wish to help you will be able to do this in the best possible way.
– Marcus Nunes
It’s Python, R or Excel?
– danieltakeshi
Actually, it’s the one that can solve the problem. I’m more comfortable with R, but I understand myself in Python. Thank you.
– Patrícia Almeida