|
In this video we begin our illustration of one-way ANOVA models in R through Example 11 in Mod13Script.R. You should open this script in RStudio and follow along while watching. In this portion of…
Copyright
I created all of this content
|
|
In this video we show how to use vector-valued specifications for the col= and pch= graphical parameters when calling plot() or some other high level graphical function in R in order to distinguish…
Copyright
I created all of this content
|
|
In this video we illustrate how to use the hist() function to plot histograms in R, and we illustrate the use and effects of some of its options (breaks and freq). We also show how to overlay a…
Copyright
I created all of this content
|
|
Although plot() can produce bar charts, the barplot() function is often more convenient. In this video we introduce this function and illustrate its use to produce bar charts that display one and…
Copyright
I created all of this content
|
|
The plot() function is the ultimate generic function in R. It is highly flexible, and produces a variety of different plot types depending upon the class of the objects that it operates on and the…
Copyright
I created all of this content
|
|
Loops are a basic element of all computer programming. In R, loops are somewhat less necessary than in many other languages because R can do vectorized calculations---calculations on all of the…
Copyright
I created all of this content
|
|
Frequency distributions (univariate and joint) can be displayed in contingency tables, or cross-tabulations. In this video we show how tapply() can be used to create such tables, but we…
Copyright
I created all of this content
|
|
While tapply() applies a function to different observations in a vector, which might correspond to rows in a data frame, lapply() and sapply() apply a function to each element of a list. In the case…
Copyright
I created all of this content
|
|
The tapply() function is one of several "apply" functions in R that allow a function to operate on data repeatedly. The function tapply() applies a function to groups of observations within…
Copyright
I created all of this content
|
|
We continue to discuss data structures in R, this time focusing on lists. Unlike vectors, matrices and arrays, the elements of a list may be of different modes. This makes them very flexible and…
Copyright
I created all of this content
|
|
In this video we continue with Example #7 from Mod7Examps.sas, in which we regress the city mpg on weight for 93 cars in the 1993 Consumer Reports Cars dataset. Here we consider a model that is…
Copyright
I created all of this content
|
|
Copyright
I created all of this content
|
|
The scatter plot is a fundamental tool for visualizing the relationship between two quantitative variables. In this video we show how to use PROC SGPLOT to produce scatter plots and demonstrate how…
Copyright
I created all of this content
|
|
In this video we review the anatomy of a boxplot and show how to use PROC SGPLOT to produce vertical or horizontal boxplots. We show how to produce side-by-side boxplots as well as clustered…
Copyright
I created all of this content
|
|
PROC SGPLOT implements a wide variety of different plot types. In this video, we introduce the procedure and illustrate how to use it to produce bar charts that display frequency distributions or…
Copyright
I created all of this content
|
|
In this video we demonstrate how to use the MERGE statement to perform a many-to-one merge. Three examples are given to demonstrate this programming task. Sometimes a data set with just one…
Copyright
I created all of this content
|