Learn R Programming

fmsb (version 0.7.6)

Functions for Medical Statistics Book with some Demographic Data

Description

Several utility functions for the book entitled "Practices of Medical and Health Data Analysis using R" (Pearson Education Japan, 2007) with Japanese demographic data and some demographic analysis related functions.

Copy Link

Version

Install

install.packages('fmsb')

Monthly Downloads

13,020

Version

0.7.6

License

GPL (>= 2)

Maintainer

Last Published

January 19th, 2024

Functions in fmsb (0.7.6)

Jlife

Completed lifetables in Japan.
PrefYLL2020

Years of Life Lost by several causes in Japan 2020 for each prefecture
RDMH

Calculate pooled risk difference and its confidence intervals with Mantel-Haenszel's method
Kappa.test

Calculate Cohen's kappa statistics for agreement
PEI

Population Expansion Index
NagelkerkeR2

Calculate Nagelkerke's R squared.
ORMH

Calculate pooled odds ratio and its confidence intervals with Mantel-Haenszel's method
RCI

Calculate risk and its confidence interval
Prefe0

Changes of life expectancy at birth for each prefecture in Japan since 1965
PrefYLL2010

Years of Life Lost by several causes in Japan 2010 for each prefecture
PrefYLL2015

Years of Life Lost by several causes in Japan 2015 for each prefecture
VIF

Calculate variance inflation factor (VIF) from the result of lm.
RRMH

Calculate pooled risk ratio and its confidence intervals with Mantel-Haenszel's method
WhipplesIndex

Whipple's Index
gstem

Draw the stem and leaf plot in a graphic device.
lifetable

Lifetable functions with mutual conversions
Siler

Siler's model mortality for qx and its fitting
geary.test

Geary's test for normality about kurtosis.
mhchart

Draw maternity history charts.
SIQR

Calculate semi-interquartile range
S60MPJ

Model population of Japan in Showa 60 (1985)
ratedifference

Calculate incidence rate difference and its confidence intervals
percentile

Convert numeric vector into its percentile
pvalueplot

Drawing p-value function plot by a cross table
riskratio

Calculate risk ratio and its confidence intervals
riskdifference

Calculate risk difference and its confidence intervals
truemedian

Calculate true median for data with ties.
pvpORMH

Drawing p-value function plot by stratified or pooled cross tables
rateratio

Calculate incidence rate ratio and its confidence intervals
spearman.ci.sas

Calculate Spearman's rank correlation with its confidence intervals by SAS method
radarchart

Drawing radar chart (a.k.a. spider plot)
roc

Calculate Receiver Operating Characteristic (ROC) curve
pairwise.fisher.test

Exact version of pairwise.prop.test
oddsratio

Calculate odds ratio and its confidence intervals
CT

Coale and Trussell's model marital fertility and its fitting
CM

Coale and McNeil's model nupitiality and its fitting
IRCI

Calculate a incidence rate with confidence interval
IRCIPois

Calculate incidence rate with its confidence intervals by exact method
Hadwiger

Hadwiger's model fertility and its fitting
Denny

Denny's model mortality for lx and its fitting
CronbachAlpha

Calculate Cronbach's alpha coefficient.
GompertzMakeham

Gompertz-Makeham's model mortality for u(x) and its fitting
CaretakerRatio

Caretaker Ratio
H27MPJ

Tentative model population of Japan in Heisei 27 (2015)
IRRMH

Calculate pooled incidence rate ratio and its confidence intervals with Mantel-Haenszel's method
IRDMH

Calculate pooled incidence rate difference and its confidence intervals with Mantel-Haenszel's method
JASM

Japanese mortality data
Jvital

Longitudinal data of several vital statistics in Japan
IndexOfDissimilarity

Index of dissimilarity (ID)
Jfert

Age-specific fertility rates and age-specific marital fertility rates in Japan.
Jpop

Japanese population data
Jvital2013byPref

Cross sectional data of several vital statistics in Japan 2013 for each prefecture
Jpopl

Japanese population data (unshrunken version)