A data set containing binary items information. Example data regenerated from CTA1

binary

Format

A data frame with variables:

schid

School ID

id

Student ID

sex

0 = boys; 1 = girls

race

0 = White; 1 = Others

pretest

Pre test scores

stdscore

Standardized scores

cm_sex

Cluster-mean of sex

cm_race

Cluster-mean of race

cm_pretest

Cluster-mean of Pre test scores

cm_stdscore

Cluster-mean of of Standardized scores

trt

Treatment assignment; 0 = control, 1 = treatment

Y

Outcome

q1

Binary item

q2

Binary item

q3

Binary item

q4

Binary item

q5

Binary item

q6

Binary item

q7

Binary item

q8

Binary item

q9

Binary item

q10

Binary item

q11

Binary item

q12

Binary item

q13

Binary item

q14

Binary item

q15

Binary item

q16

Binary item

q17

Binary item

q18

Binary item

q19

Binary item

q20

Binary item

Source

CTA1

Examples

data(binary)
summary(binary)
#>      schid             id            sex              race       
#>  Min.   : 1.00   Min.   :   1   Min.   :0.0000   Min.   :0.0000  
#>  1st Qu.:14.00   1st Qu.:1192   1st Qu.:0.0000   1st Qu.:0.0000  
#>  Median :34.00   Median :2384   Median :0.0000   Median :0.0000  
#>  Mean   :31.92   Mean   :2384   Mean   :0.4933   Mean   :0.4096  
#>  3rd Qu.:49.00   3rd Qu.:3575   3rd Qu.:1.0000   3rd Qu.:1.0000  
#>  Max.   :63.00   Max.   :4766   Max.   :1.0000   Max.   :1.0000  
#>                                                                  
#>     pretest         stdscore            cm_sex          cm_race       
#>  Min.   : 0.00   Min.   :-4.01230   Min.   :0.0000   Min.   :0.00000  
#>  1st Qu.:12.00   1st Qu.:-0.60500   1st Qu.:0.4483   1st Qu.:0.08333  
#>  Median :16.00   Median :-0.02870   Median :0.4966   Median :0.39442  
#>  Mean   :16.75   Mean   : 0.03486   Mean   :0.4933   Mean   :0.40957  
#>  3rd Qu.:21.00   3rd Qu.: 0.67530   3rd Qu.:0.5235   3rd Qu.:0.81967  
#>  Max.   :40.00   Max.   : 4.68320   Max.   :1.0000   Max.   :1.00000  
#>                                                                       
#>    cm_pretest     cm_stdscore             trt            Y          
#>  Min.   : 7.00   Min.   :-1.031270   Min.   :0.0   Min.   :-1.7830  
#>  1st Qu.:14.98   1st Qu.:-0.236336   1st Qu.:0.0   1st Qu.:-0.9370  
#>  Median :16.85   Median :-0.008853   Median :0.5   Median :-0.4535  
#>  Mean   :16.75   Mean   : 0.034864   Mean   :0.5   Mean   :-0.3588  
#>  3rd Qu.:18.11   3rd Qu.: 0.304812   3rd Qu.:1.0   3rd Qu.: 0.1485  
#>  Max.   :23.41   Max.   : 2.157150   Max.   :1.0   Max.   : 2.3080  
#>                                                                     
#>        q1               q2               q3               q4        
#>  Min.   :0.0000   Min.   :0.0000   Min.   :0.0000   Min.   :0.0000  
#>  1st Qu.:0.0000   1st Qu.:0.0000   1st Qu.:1.0000   1st Qu.:1.0000  
#>  Median :0.0000   Median :0.0000   Median :1.0000   Median :1.0000  
#>  Mean   :0.1181   Mean   :0.1189   Mean   :0.8795   Mean   :0.8671  
#>  3rd Qu.:0.0000   3rd Qu.:0.0000   3rd Qu.:1.0000   3rd Qu.:1.0000  
#>  Max.   :1.0000   Max.   :1.0000   Max.   :1.0000   Max.   :1.0000  
#>  NA's   :2132     NA's   :2604     NA's   :2401     NA's   :2448    
#>        q5               q6               q7               q8        
#>  Min.   :0.0000   Min.   :0.0000   Min.   :0.0000   Min.   :0.0000  
#>  1st Qu.:1.0000   1st Qu.:0.0000   1st Qu.:1.0000   1st Qu.:0.0000  
#>  Median :1.0000   Median :1.0000   Median :1.0000   Median :0.0000  
#>  Mean   :0.7799   Mean   :0.7408   Mean   :0.8639   Mean   :0.2841  
#>  3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:1.0000  
#>  Max.   :1.0000   Max.   :1.0000   Max.   :1.0000   Max.   :1.0000  
#>  NA's   :2476     NA's   :2528     NA's   :2555     NA's   :2957    
#>        q9              q10              q11              q12        
#>  Min.   :0.0000   Min.   :0.0000   Min.   :0.0000   Min.   :0.0000  
#>  1st Qu.:1.0000   1st Qu.:0.0000   1st Qu.:1.0000   1st Qu.:0.0000  
#>  Median :1.0000   Median :1.0000   Median :1.0000   Median :1.0000  
#>  Mean   :0.8908   Mean   :0.7314   Mean   :0.7817   Mean   :0.7007  
#>  3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:1.0000   3rd Qu.:1.0000  
#>  Max.   :1.0000   Max.   :1.0000   Max.   :1.0000   Max.   :1.0000  
#>  NA's   :3036     NA's   :3087     NA's   :3135     NA's   :3162    
#>       q13             q14             q15             q16       
#>  Min.   :0.000   Min.   :0.000   Min.   :0.000   Min.   :0.000  
#>  1st Qu.:0.000   1st Qu.:0.000   1st Qu.:0.000   1st Qu.:0.000  
#>  Median :0.000   Median :1.000   Median :0.000   Median :1.000  
#>  Mean   :0.237   Mean   :0.633   Mean   :0.334   Mean   :0.709  
#>  3rd Qu.:0.000   3rd Qu.:1.000   3rd Qu.:1.000   3rd Qu.:1.000  
#>  Max.   :1.000   Max.   :1.000   Max.   :1.000   Max.   :1.000  
#>  NA's   :3437    NA's   :3462    NA's   :3481    NA's   :3489   
#>       q17             q18             q19             q20       
#>  Min.   :0.000   Min.   :0.000   Min.   :0.000   Min.   :0.000  
#>  1st Qu.:0.000   1st Qu.:0.000   1st Qu.:0.000   1st Qu.:1.000  
#>  Median :1.000   Median :1.000   Median :1.000   Median :1.000  
#>  Mean   :0.633   Mean   :0.698   Mean   :0.623   Mean   :0.808  
#>  3rd Qu.:1.000   3rd Qu.:1.000   3rd Qu.:1.000   3rd Qu.:1.000  
#>  Max.   :1.000   Max.   :1.000   Max.   :1.000   Max.   :1.000  
#>  NA's   :3506    NA's   :3520    NA's   :3537    NA's   :3567