0

Currently, I'm working building a regression model for the prediction of various financial variables. After data collection, I'm now looking into qqplots to determine differences in distributions of the independent variables. The picture added is an example of a result obtained using a QQplot.

Now I need to add a regression line and calculate the R^2, to determine which data transformation (log, quadratic, ...) I should apply.

This is de line that creates the QQplot:

qqplot(Xvar, Yvar, plot.it = TRUE, xlab = Xvar, ylab = Yvar, xlim=c(-5, 30),
ylim=c(0, 100000000), main = QQPlot)

Can you, please, help me with this?

Thank you!

QQplot of financial variables

eipi10
  • 91,525
  • 24
  • 209
  • 285
Erwin R
  • 1
  • 2
  • Possible duplicate of http://stackoverflow.com/questions/12881553/add-a-logarithmic-regression-line-to-a-scatterplot-comparison-with-excel , http://stackoverflow.com/questions/15633714/adding-a-regression-line-on-a-ggplot , http://stackoverflow.com/questions/27194627/how-do-i-add-regression-lines-to-a-scatterplot-matrix , etc – zx8754 Apr 05 '17 at 13:30
  • ^^ they are not equivalent to this question, which is asking about qqplot, not standard R plotting or ggplot. – Single Entity Apr 05 '17 at 14:22

0 Answers0