RR.table.view: Just print Relative Risks (RR) info by demog group by risk...

View source: R/RR.table.view.R

RR.table.viewR Documentation

Just print Relative Risks (RR) info by demog group by risk type by zone

Description

Currently does not do anything other than print. Takes zone-specific RRS values and prints them for viewing. Just another way to specify which subset of the RR array you want to view.

Usage

RR.table.view(
  x,
  d = dimnames(x)[[1]],
  e = dimnames(x)[[2]],
  zone = dimnames(x)[[3]]
)

Arguments

x

A three dimensional array that is created by RR() and has format like RRSd, e, zone

d

Optional. Vector of names of demographic groups that must be subset of first dimension of RRS. Default is all.

e

Optional. Vector of names of environmental risk indicators that must be subset of second dimension of RRS. Default is all.

zone

Optional. Vector of zone names that must be subset of names of third dimension of RRS. Default is all.

Value

prints RRSd, e, zone

See Also

RR()

Examples

 t(round(RR.table.view(
   RR.table(bgtest, names.e[1:3], names.d[3:4], 'pop', Zcolname = 'statename'),
   d = 'pctlowinc'
  ), 2))

ejanalysis/ejanalysis documentation built on April 2, 2024, 10:12 a.m.