Learn R Programming

⚠️There's a newer version (0.7.6) of this package.Take me there.

fmsb (version 0.7.5)

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

15,895

Version

0.7.5

License

GPL (>= 2)

Maintainer

Minato Nakazawa

Last Published

January 5th, 2023

Functions in fmsb (0.7.5)

CronbachAlpha

Calculate Cronbach's alpha coefficient.
Denny

Denny's model mortality for lx and its fitting
Hadwiger

Hadwiger's model fertility and its fitting
IndexOfDissimilarity

Index of dissimilarity (ID)
Jpop

Japanese population data
Jpopl

Japanese population data (unshrunken version)
Kappa.test

Calculate Cohen's kappa statistics for agreement
Jvital2013byPref

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

Longitudinal data of several vital statistics in Japan
Jlife

Completed lifetables in Japan.
NagelkerkeR2

Calculate Nagelkerke's R squared.
Jfert

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

Japanese mortality data
Siler

Siler's model mortality for qx and its fitting
RCI

Calculate risk and its confidence interval
Prefe0

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

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

Calculate semi-interquartile range
PEI

Population Expansion Index
PrefYLL2015

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

Model population of Japan in Showa 60 (1985)
PrefYLL2020

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

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

Drawing p-value function plot by a cross table
VIF

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

Geary's test for normality about kurtosis.
WhipplesIndex

Whipple's Index
mhchart

Draw maternity history charts.
lifetable

Lifetable functions with mutual conversions
oddsratio

Calculate odds ratio and its confidence intervals
pairwise.fisher.test

Exact version of pairwise.prop.test
percentile

Convert numeric vector into its percentile
gstem

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

Calculate risk difference 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)
truemedian

Calculate true median for data with ties.
riskratio

Calculate risk ratio and its confidence intervals
pvpORMH

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

Calculate incidence rate ratio and its confidence intervals
roc

Calculate Receiver Operating Characteristic (ROC) curve
ratedifference

Calculate incidence rate difference and its confidence intervals
GompertzMakeham

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

Calculate a incidence rate with confidence interval
IRCIPois

Calculate incidence rate with its confidence intervals by exact method
CT

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

Coale and McNeil's model nupitiality and its fitting
H27MPJ

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

Caretaker Ratio