[R] how to get variance?

2011-01-23 Thread kiotoqq
I've got this table: A B 1 7.8 215 2 6.8 280 3 9.4 356 4 5.2 38 5 8.2 167 6 4.8 127 7 3.7 8 8 6.2 201 9 9.7 346 10 8.1 241 how can I get the variance and covariance of A and B? -- View this message in context:

[R] Compare the risk

2011-01-07 Thread kiotoqq
I have a dataset which looks like this: cbr dust smoking expo 1 0 0.20 15 2 0 0.25 14 3 0 0.25 18 4 0 0.25 14 5 0 0.25 14 6 0 0.25 18 7 0 0.25 18 8 0 0.25 14 9

Re: [R] Compare the risk

2011-01-07 Thread kiotoqq
thank you.. but it says dfrm not found (sorry, I'm just very new here) -- View this message in context: http://r.789695.n4.nabble.com/Compare-the-risk-tp3189084p3204440.html Sent from the R help mailing list archive at Nabble.com. __

Re: [R] Compare the risk

2011-01-07 Thread kiotoqq
thanks a lot! I got it! -- View this message in context: http://r.789695.n4.nabble.com/Compare-the-risk-tp3189084p3204512.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org mailing list

[R] need help for chi-squared test

2011-01-06 Thread kiotoqq
I've got a dataset which looks like this in the beginning: cbr dust smoking expo 1 0 0.20 15 2 0 0.25 14 3 0 0.25 18 4 0 0.25 14 5 0 0.25 14 (till no. 1240, anyway, a huge set) I have to analyse cbr and

Re: [R] need help for chi-squared test

2011-01-06 Thread kiotoqq
I used chisq.test(read.table(C:/Users/Maggy/Downloads/dust.asc, header=TRUE)) and got this Pearson's Chi-squared test data: read.table(C:/Users/Maggy/Downloads/dust.asc, header = TRUE) X-squared = 5226.164, df = 3735, p-value 2.2e-16 and I think it should be right for the whole

[R] How can I draw a line in empirical distribution function?

2010-12-16 Thread kiotoqq
I've got the graphic with this: a=c(120,40,75,85,55,75,55,90,90,55,155) plot(ecdf(a)) How can I draw lines to show the lower quatile and upper quartil? I only know there is the argument lines(), but I don't know how to use it -- View this message in context:

[R] how to plot empirical distribution function?

2010-12-15 Thread kiotoqq
I have the table company: 1 2 3 4 5 6 7 8 9 10 11 transaction volume:120 40 75 85 55 75 55 90 90 55 155 how can I plot the empirical distribution function of it? I only know there is the ecdf, but I dont know how to use it, please help! -- View this message in context:

Re: [R] how to plot empirical distribution function?

2010-12-15 Thread kiotoqq
I got it so far, but dont know if its right: x=c(120,40,75,85,55,75,55,90,90,55,155) Fn - ecdf(x) plot(Fn,verticals = TRUE, ? -- View this message in context: http://r.789695.n4.nabble.com/how-to-plot-empirical-distribution-function-tp3089821p3089845.html Sent from the R help mailing list

[R] problems with mosaic plot

2010-12-15 Thread kiotoqq
I'm pretty sure that I did everything right, but my R is just not drawing the mosaicplot that I want, and there is also no error messege, looks like this right now: mosaicplot(arthritis) mosaicplot(~ sex + treatment + improved, data = arthritis, color = TRUE) -- View this message in

Re: [R] problems with mosaic plot

2010-12-15 Thread kiotoqq
thanks so much! grapphics.off() works! 2010/12/16 Michael Bibo-2 [via R] ml-node+3090212-673909616-205...@n4.nabble.comml-node%2b3090212-673909616-205...@n4.nabble.com kiotoqq kiotoqq at googlemail.com writes: I'm pretty sure that I did everything right, but my R is just not drawing