Like this?
age<-as.integer(sample(rnorm(100, mean=30, sd=10), replace=T))
height<-as.integer(1+age*rnorm(100,mean=1,sd=0.2))
plot(age, height)
table(age,height)
or
freq=data.frame(table(age,height))
freq<-subset(freq,Freq>0)
freq
bests
milton
On Fri, Aug 14, 2009 at 5:02 AM, rajclinasia wrote
Hi every one,
how to get frequency distributions for one variable across other variable.
ex: var1=age, var2=height i need frequency distribution of age across
height.
Thanks in Advance.
--
View this message in context:
http://www.nabble.com/cross-tabulation-for-frequency-distributions-tp2496853
2 matches
Mail list logo