Le mer. 23 juil. à 14:29, Angelo Scozzarella a écrit :

Hi,

how can I treat data organised in classes and frequencies?

Ex.

class           frequency

20-23                   9
23-25                   7
26-28                   5
29-31                   5
32-34                   3

It depends what you mean by "treat", but package actuar has a function grouped.data() to create such objects. Then, there are methods to compute the mean or plot the histogram. See the "lossdist" package vignette for details.

HTH  Vincent

--
  Vincent Goulet, Associate Professor
  École d'actuariat
  Université Laval, Québec
  [EMAIL PROTECTED]   http://vgoulet.act.ulaval.ca

Thanks

Angelo Scozzarella

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to