search for: tfr10

Displaying 1 result from an estimated 1 matches for "tfr10".

Did you mean: tfr1
2011 Aug 31
1
looping by grouping variable
...act a state variable, for which, I want to use the averages, calculated at the state level, and utilize those averages for another variable. I know this may be confusing, so I'm posting an example dataset here: id.tmp1<-as.character(01001:01010) st<-substr(id,1,1) cnty<-substr(id,2,5) tfr10<-rnorn(1:10) mydata<-cbind(id,st,cnty,tfr10) print(mydata) id st cnty tfr10 [1,] "1001" "1" "001" "1.07505442756833" [2,] "1002" "1" "002" "-0.882434417011687" [3,] "1003"...