search for: datecat

Displaying 4 results from an estimated 4 matches for "datecat".

2002 Feb 14
1
Advice on using barplot
...using R: some presentation graphics based on R data. I'd like to compare two distributions of ordinal variables in relatively small (N=203 and 207) subsets of an R dataset. I can get a reasonably good picture of the distributions' differences with: x11() plot(table(hcd.df$auth.sum[hcd.df$datecat==1]), type='l',xlim=c(-8,7), ylim=c(0,59)) par(new=TRUE) plot(table(hcd.df$auth.sum[hcd.df$datecat==2]), type='l', col='red',xlim=c(-8,7), ylim=c(0,59)) but the line style is awkward and possibly even misleading when the values are ordinal. What I'd like to use is a bar...
2002 Jan 10
2
Simple summary question
I'd like to get summary statistics (really just a mean would be fine) for a vector in a data frame, but split based on the value of another vector. That is, I have a data frame (hcd.df) with variables datecat (which is always 1 or 2) and auth.sum (-8..+8). I've used xtabs to get chi-square comparisons, but what I need now is a simple mean of auth.sum where datecat is 1 and another where datecat is 2. Thanks for any advice. ---------------------------------------------------------------------- And...
2002 Feb 19
1
Smoothed lines over barplots
...e to generate a graph that displays two distributions as side-by-side bar graphs, then plots a smoothed line of the distribution on top. The idea is to be able to visually compare the distributions. I've done the following, but the axes don't line up. Any suggestions? barplot(table(hcd.df$datecat, hcd.df$auth.sum), beside=TRUE, legend.text=c('Pre-9/11','Post-9/11'),main='Authoritarian Sum', sub='Chi-Square: 33.88; p< .01',col=c('yellow','red')) par(new=TRUE) plot(table(hcd.df$auth.sum[hcd.df$datecat==1]), type='l',xlim=c(-8,7),...
2002 Jan 15
3
Getting started with R
I've got a background in computer science & have been using Linux for nearly a decade. I'm working on a Ph.D. in education and technology and I essentially live in emacs and do all of my writing in LaTeX. To me R seems like the perfect stats package. Unfortunately, the learning curve is killing me. I feel like that if I'd waded through pulling down menus in SPSS or SAS I could