| stroke.wide {dobson} | R Documentation | 
Stroke data from table 11.1
Description
Longitudinal data from an experiment to promote the recovery of stroke patients in wide format. The response variable is the Bartel index with higher scores meaning better outcomes and a maximum score of 100.
Usage
data(stroke.wide)
Format
A tibble with 24 observations and the following 10 variables.
Subjectsubject number
Groupgroup; A=new occupational therapy intervention, B = existing stroke rehabilitation program in the same hospital as A, C = usual care in a different hospital
week1Bartel index in week 1
week2Bartel index in week 2
week3Bartel index in week 3
week4Bartel index in week 4
week5Bartel index in week 5
week6Bartel index in week 6
week7Bartel index in week 7
week8Bartel index in week 8
Source
C. Cropper, University of Queensland
Examples
data(stroke.wide)
summary(stroke.wide)
# To transform data from wide to long format use
## Not run: 
library(reshape2)
stroke = melt(data=stroke.wide, id.vars=c('Subject','Group'), 
  value.name='ability', variable.name='week')
stroke$time = as.numeric(gsub('week', '', stroke$week))
## End(Not run)
[Package dobson version 0.4 Index]