Learn R Programming

multiCA (version 1.2.0)

stroke: Stroke types over time

Description

Nakajima et al. (2014) collected information on stroke patients over a 9-year period. For each patient, the type of stroke was classified into one of 5 categories by etiology.

Usage

data("stroke")

Arguments

Format

A data frame with 45 observations on the following 3 variables.

Type

a factor with levels Small vessel occlusion, Large artery atherosclerosis, Cardioembolism, Other determined aetiology, and Undetermined aetiology giving the etiology of the stroke

Year

a numeric vector with the year of the observation

Freq

a numeric vector with the number of patients with a stroke of the given etiology that year

Examples

Run this code
data(stroke)
xtabs(Freq ~ Type + Year, data=stroke)

strk.props <- prop.table(xtabs(Freq ~ Year+Type, data=stroke), margin=1)
matplot(strk.props, type="l")

Run the code above in your browser using DataLab