worste | R Documentation |
View one key part of table of Relative Risk results by zone by group by envt risk factor
worste(rrs, d = "pctlowinc", e = "pm", zone = "USA", n = 10, digits = 2)
rrs |
Required. This has to be the output of one of the functions like |
d |
name of demographic field with percent (fraction) of population that is in each given demographic group, in dimnames(rrs)[1] |
e |
not used. e name of environmental risk factor in dimnames(rrs)[2] |
zone |
name of zone such as 'USA' or 'NY' found in dimnames(rrs)[3] |
n |
worst 10 by default |
digits |
round to 2 by default |
matrix
RR()
## Not run:
data(bgtest, package = 'ejanalysis')
RRS.US <- RR.table(mydat = bgtest, Enames = names.e, Dnames = names.d, popcolname = 'pop')
RRS.ST <- RR.table(mydat = bgtest, Enames = names.e, Dnames = names.d, popcolname = 'pop',
Zcolname = 'ST')
RRS <- RR.table.add(RRS.ST, RRS.US)
worste(RRS.US)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.