![]() The unt() function takes a numerical variable and divides its values into groups of approximately equal size. In the code above, the line: Height <- unt(m111survey$height, number = 2, overlap = 0.1) The following code accomplishes this: Height <- unt(m111survey$height, number = 2, overlap = 0.1)ĭata = m111survey, pch = 19, type = c("p","r"), Suppose, for example, that we would like to study the relationship between GPA and fastest speed ever driven, but to break the subjects down further into groups determined by their height and by where they prefer to sit in a classroom. Unlike the variable in the groups argument, these don’t have to be factor variables! ![]() You can incorporate additional variables into your analysis by facetting, i.e., producing a plot with separate panels for each of several subgroups of the observations, as determined by one or two other variables. When we think of one variable as explanatory and the other as the response, it is common to put the explanatory on the horizontal axis and the response on the vertical axis.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |