Hi,
I would like to construct a curve or mathematical function that has the best fit to a series of data points.
I am supposed to fit a curve of the form y=xp through a plot of SD systolic blood pressure (y-axis) against mean systolic blood pressure (x-axis).
I first did a scatterplot of SD systolic blood pressure (y-axis) against mean systolic blood pressure (x-axis), for all individuals in my cohort. But I have some trouble to fit the curve as mentioned before.
How could I find this coefficient p?
I tried to use the - twoway qfit - command but I am not sure of the result.
Any advices?
Thank you very much for your valuable help,
Pierre
I would like to construct a curve or mathematical function that has the best fit to a series of data points.
I am supposed to fit a curve of the form y=xp through a plot of SD systolic blood pressure (y-axis) against mean systolic blood pressure (x-axis).
I first did a scatterplot of SD systolic blood pressure (y-axis) against mean systolic blood pressure (x-axis), for all individuals in my cohort. But I have some trouble to fit the curve as mentioned before.
How could I find this coefficient p?
I tried to use the - twoway qfit - command but I am not sure of the result.
Any advices?
Thank you very much for your valuable help,
Pierre
Comment