O'Reilly logo

R Statistical Application Development by Example Beginner's Guide by Prabhanjan Narayanachar Tattar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action – random forests for the low birth weight data

The techniques learnt from Chapter 6 to Chapter 10 will now be put to the test. That is, we will use the linear regression model, logistic regression, as well as CART.

  1. Read the dataset into R with data(lowbwt).
  2. Visualize the dataset with the options diag.panel, lower.panel, and upper.panel:
    pairs(lowbwt,diag.panel=panel.hist,lower.panel=panel.smooth,upper.panel=panel.cor)

    Interpret the matrix of scatter plots. Which statistical model seems most appropriate to you?

    Time for action – random forests for the low birth weight data

    Figure 4: Multivariable display of the "lowbwt" dataset

    As the correlations look weak, it seems that a regression model may not ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required