search for: galton2

Displaying 3 results from an estimated 3 matches for "galton2".

Did you mean: galton
2004 Feb 20
3
problem with abline for x.y
...ith both regression lines and data ellipses, and I must be doing something wrong, because the lines do not intersect at \bar{x}, \bar{y}. The problem is likely in the line for x.y, but I don't know how to specify that correctly. The data is read in grouped form( galton), and then ungrouped (galton2): galton <- read.table("~/sasuser/data/galton.txt", header=TRUE) # ungroup galton2<-galton[rep(1:nrow(galton), galton$frequency), 1:2] attach(galton) sunflowerplot(child, parent, number=frequency, xlim=c(61,75), ylim=c(61,75), xlab="Child height", ylab="Mid Par...
2003 Sep 25
3
ungrouping grouped data
...72.5 69.2 2 72.5 70.2 1 72.5 71.2 2 72.5 72.2 7 72.5 73.2 2 72.5 74.2 4 71.5 65.2 1 71.5 66.2 3 71.5 67.2 4 71.5 68.2 3 71.5 69.2 5 71.5 70.2 10 ... and need the ungrouped equivalent, where each input observation appears the number of times represented by its frequency. In SAS this would be data galton2; set galton; do i=1 to frequency; output; end; I can replicate this in R, but surely there must be an easier way. (In APL2 it would be frequency\[1]galton) thanks, -Michael -- Michael Friendly Email: friendly at yorku.ca Professor, Psychology Dept. York University V...
2003 Sep 25
0
AW: ungrouping grouped data
...70.2 1 72.5 71.2 2 72.5 72.2 7 72.5 73.2 2 72.5 74.2 4 71.5 65.2 1 71.5 66.2 3 71.5 67.2 4 71.5 68.2 3 71.5 69.2 5 71.5 70.2 10 ... and need the ungrouped equivalent, where each input observation appears the number of times represented by its frequency. In SAS this would be data galton2; set galton; do i=1 to frequency; output; end; I can replicate this in R, but surely there must be an easier way. (In APL2 it would be frequency\[1]galton) thanks, -Michael -- Michael Friendly Email: friendly at yorku.ca Professor, Psychology Dept. York Univ...