In Parts 3 and 4 we used the lm() command to perform least squares regressions. We saw how to check for non-linearity in our data by fitting polynomial models and checking whether they fit the data better than a linear model. Now let’s see how to fit an exponential model…
Quick start with R: Advanced regression models (Part 4)
In Part 3 we used the lm() command to perform least squares regressions. In Part 4 we will look at more advanced aspects of regression models and see what R has to offer. One way of checking for non-linearity in your data is to fit a polynomial model and check…
Quick start with R: More about regression (Part 3)
In Part 2 we created two variables and used the lm() command to perform a least squares regression on them, treating one of them as the dependent variable and the other as the independent variable. Here they are again. height = c(186, 165, 149, 206, 143, 187, 191, 179, 162,…
Quick start with R: Graph and simple regression (Part 2)
In Part 1 we installed R and used it to create a variable and summarise it using a few simple commands. Today let’s re-create that variable and also create a second variable, and see what we can do with them. As before, we take height to be a variable that…
Quick start with R
Many of you have heard of R (the R statistics language and environment for scientific and statistical computing and graphics). Perhaps you know that it uses command line input rather than pull-down menus. Perhaps you feel that this makes R hard to use and somewhat intimidating! Indeed, R has a…
Installing R packages
Select CRAN server Click the R desktop icon to start R program. The start screen should look like the following. Click Packages on the main menu and then select Set CRAN mirror from the drop-down list. There are dozens of servers around the world from where R and its packages…
Downloading and installing R
What is R? is a free open source statistical program. It could be used to conduct statistical and econometric analysis both in an interactive mode and batch mode, i.e. using simple statistical programming. R is modularly built where each module (called package) perform a specific type of analysis. Beside basic…
The first post
This is the first post in My Statistical Consultant Ltd blog. If you need help while working on a doctoral/master thesis and research projects, from the choice of topic, writing the application, methodology, to the presentation of the results obtained, you will find it in this blog with tips on…