polypharm: POLYPHARM data

Description Usage Format Source Examples

Description

polypharm dataset.

Usage

1

Format

A data.frame with 3500 rows and 14 variables:

id

Subject ID (1 - 500)

polypharmacy

Outcome; taking drugs from more than three different classes (1: No, 2: Yes)

mhv4

Number of outpatient Mental Health Visits (1: none, 2: one to five, 3: six to fourteen, 4: greater than 14)

inptmhv3

Number of inpatient Mental Health Visits (1: none, 2: one, 3: more than one)

year

Year (2002 to 2008)

group

Group (1: Covered Families and Children - CFC, 2: Aged, Blind or Disabled - ABD, 3: Foster Care - FOS)

urban

Location (1: Urban, 2: Rural)

comorbid

Comorbidity (1: No, 2: Yes)

anyprim

Any primary diagnosis (bipolar, depression, etc.) (1: No, 2: Yes)

numprim

Number of primary diagnosis (1: none, 2: one, 3: more than one)

gender

Gender (1: Female, 2: Male)

race

Race (1: White, 2: Black, 3: Other)

ethnic

Ethnic category (1: Non-Hispanic, 2: Hispanic)

age

Age (Years and months, two decimal places)

Source

Hosmer, D.W., Lemeshow, S. and Sturdivant, R.X. (2013) Applied Logistic Regression, 3rd ed., New York: Wiley

Examples

1
2

Example output

   id polypharmacy mhv4 inptmhv3 year group urban comorbid anyprim numprim
1   1           No    0        0 2002   CFC Urban      Yes     Yes       1
2   1           No  1-5        0 2003   CFC Urban      Yes     Yes       1
3   1           No    0        0 2004   CFC Urban       No      No       0
4   1           No  1-5        0 2005   CFC Urban      Yes     Yes       1
5   1           No    0        0 2006   CFC Urban      Yes     Yes       1
6   1           No  1-5        0 2007   ABD Urban      Yes     Yes       1
7   1           No 6-14        0 2008   ABD Urban      Yes     Yes       1
8   2           No 6-14        0 2002   ABD Urban      Yes     Yes       1
9   2           No 6-14        0 2003   ABD Urban      Yes     Yes       1
10  2           No > 14        0 2004   ABD Urban       No     Yes       1
   gender  race   ethnic   age
1  Female White Non-Hisp  4.67
2  Female White Non-Hisp  5.67
3  Female White Non-Hisp  6.00
4  Female White Non-Hisp  7.08
5  Female White Non-Hisp  8.00
6  Female White Non-Hisp  9.92
7  Female White Non-Hisp 10.67
8    Male Black Non-Hisp  7.58
9    Male Black Non-Hisp  8.08
10   Male Black Non-Hisp  9.83
       id        polypharmacy   mhv4      inptmhv3        year      group     
 Min.   :  1.0   No :2681     0   : 558   0  :3333   Min.   :2002   CFC:1787  
 1st Qu.:125.8   Yes: 819     1-5 : 909   1  : 121   1st Qu.:2003   ABD:1251  
 Median :250.5                6-14:1002   > 1:  46   Median :2005   FOS: 462  
 Mean   :250.5                > 14:1031              Mean   :2005             
 3rd Qu.:375.2                                       3rd Qu.:2007             
 Max.   :500.0                                       Max.   :2008             
   urban      comorbid   anyprim    numprim        gender        race     
 Urban:2529   No :2879   No : 991   0   : 991   Female: 798   White:2926  
 Rural: 970   Yes: 621   Yes:2509   1   :2440   Male  :2702   Black: 553  
 NA's :   1                         > 1 :  20                 Other:  21  
                                    NA's:  49                             
                                                                          
                                                                          
      ethnic          age       
 Non-Hisp:3458   Min.   : 1.17  
 Hispanic:  42   1st Qu.: 9.67  
                 Median :11.75  
                 Mean   :11.65  
                 3rd Qu.:13.75  
                 Max.   :18.92  

aplore3 documentation built on May 2, 2019, 8:24 a.m.