O'Reilly logo

Practical Predictive Analytics by Ralph Winters

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

Generating your own data

Not sure which data source to use when testing a predictive model? No problem. Generate your own data with the built-in sample() function, as well as generating random observations based upon distributions such as runif (uniform), rnorm (normal), mvrnorm (multivariate normal), or rpois (poisson counts). We will also be using a specialized package called wakefield, which generates typical random values that you would find in many data sources, such as age, gender, education, and customer satisfaction scores, without having to worry about the underlying distributions.

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