The burnout study
To demonstrate how the class is used, I can use data from a study on burnout in human services. Michael Leiter and Kimberly Ann Meechan studied the relationship between a measure of burnout called the Exhaustion Index and an independent variable they called Concentration. Concentration refers to the proportion of a person's social contacts that come from their work environment.
To examine the relationship between Exhaustion Index scores and Concentration scores for individuals from their sample, load these scores into appropriately named arrays and instantiate the class with these array values. After instantiating the class, display some of the summary values generated by the class to assess the degree to which a linear model fits the data.
Listing 5 shows a script that loads the data and displays summary values:
Listing 5. A script for loading data and displaying summary values

Run this script through a Web browser to produce the following output:
Equation:  Exhaustion = 29.50 + (8.87 * Concentration) 
T:  6.03 
Prob > T:  0.000005 
The bottom row of this table tells that the probability of obtaining a T value this large by chance is very low. You can conclude that a simple linear model offers more predictive power than simply using the mean of the Exhaustion scores.
Knowing the concentration of workplace contacts for an individual can be used to predict the degree of burnout they are likely to be experiencing. The equation tells us that for each oneunit increase in concentration scores, a person in the social services field experiences an eightunit increase in Exhaustion scores. This provides some evidence that to reduce the potential for burnout, individuals in the social services field should consider making friends outside of their workplace.
This is a quick sketch of what these results might mean. To fully explore the implications of this dataset, you would want to study the data in more detail to make sure this is the proper interpretation. In the next article I discuss what additional analyses should be performed.
View Simple linear regression with PHP: Part 1 Discussion
Page: 1 2 3 4 5 6 7 8 Next Page: What have you learned?