6.11 Finalfit approach

The finalfit package provides an easy to use interface for performing non-parametric hypothesis tests. Any number of explanatory variables can be tested against a so-called dependent variable. In this case, this is equivalent to a typical Table 1 in healthcare study.

Note that the p-values above have not been corrected for multiple testing.

TABLE 6.4: Life expectancy, population and GDPperCap in Africa 1982 vs 2007
label levels 1982 2007 p
lifeExp Median (IQR) 50.8 (11.0) 52.9 (11.6) 0.149
pop Median (IQR) 5668228.5 (8218654.0) 10093310.5 (16454428.0) 0.033
gdpPercap Median (IQR) 1323.7 (1958.9) 1452.3 (3130.6) 0.503