Distribution of variables of interest

## # A tibble: 2 × 2
##   Stranger_group count
##   <chr>          <int>
## 1 Ingroup           25
## 2 Outgroup          31
## # A tibble: 4 × 2
##   child_race_text       count
##   <chr>                 <int>
## 1 Asian                     2
## 2 Black_AfricanAmerican     3
## 3 MoreThanOneRace           9
## 4 White                    42
## # A tibble: 2 × 2
##   child_nonwhite count
##   <chr>          <int>
## 1 nonwhite          18
## 2 white             38

# Correlations

between social wariness and TBAQ social fear

> Social wariness is correlated with TBAQ social fear at r=.39, p=.0029.

between social wariness and child age at test

## Correlation table of predictors and outcome of interest (BI stranger score towards racial outgroup)

## 
## 
## Means, standard deviations, and correlations with confidence intervals
##  
## 
##   Variable                            M     SD   1            2          
##   1. zTBAQ_SocialFear_14m             0.14  0.53                         
##                                                                          
##   2. racial_diversity                 0.19  0.43 .53                     
##                                                  [-.37, .92]             
##                                                                          
##   3. implicit_black_white_racial_bias 0.04  0.45 -.11         -.65       
##                                                  [-.80, .70]  [-.94, .21]
##                                                                          
##   4. gini_index                       -0.01 0.53 -.84*        -.30       
##                                                  [-.98, -.23] [-.86, .58]
##                                                                          
##   5. racial_income_inequality         0.15  0.46 -.86*        -.24       
##                                                  [-.98, -.29] [-.84, .62]
##                                                                          
##   6. BI_Stranger_avgZ                 0.20  0.43 .72          .38        
##                                                  [-.07, .95]  [-.52, .88]
##                                                                          
##   7. age_at_test                      0.19  0.40 .35          .23        
##                                                  [-.55, .87]  [-.63, .84]
##                                                                          
##   3           4           5           6          
##                                                  
##                                                  
##                                                  
##                                                  
##                                                  
##                                                  
##                                                  
##                                                  
##   -.34                                           
##   [-.87, .56]                                    
##                                                  
##   .00         .74                                
##   [-.75, .75] [-.02, .96]                        
##                                                  
##   -.23        -.64        -.64                   
##   [-.84, .63] [-.94, .22] [-.94, .22]            
##                                                  
##   -.07        -.52        -.44        .47        
##   [-.78, .72] [-.92, .38] [-.90, .47] [-.44, .90]
##                                                  
## 
## Note. M and SD are used to represent mean and standard deviation, respectively.
## Values in square brackets indicate the 95% confidence interval.
## The confidence interval is a plausible range of population correlations 
## that could have caused the sample correlation (Cumming, 2014).
##  * indicates p < .05. ** indicates p < .01.
## 

#predictors are reasonably uncorrelated, so can use each independently

#regression models for all participants

## 
## Call:
## lm(formula = BI_Stranger_avgZ ~ Stranger_group + zTBAQ_SocialFear_14m, 
##     data = data_sub)
## 
## Residuals:
##     Min      1Q  Median      3Q     Max 
## -2.0475 -0.3577 -0.0446  0.3833  1.5152 
## 
## Coefficients:
##                        Estimate Std. Error t value Pr(>|t|)   
## (Intercept)             -0.2402     0.1176  -2.042  0.04617 * 
## Stranger_groupOutgroup   0.2963     0.1583   1.872  0.06675 . 
## zTBAQ_SocialFear_14m     0.2417     0.0794   3.044  0.00363 **
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.5874 on 53 degrees of freedom
## Multiple R-squared:  0.2048, Adjusted R-squared:  0.1748 
## F-statistic: 6.826 on 2 and 53 DF,  p-value: 0.002303
## 
## Call:
## lm(formula = BI_Stranger_avgZ ~ Stranger_group * child_nonwhite + 
##     zTBAQ_SocialFear_14m, data = data_sub)
## 
## Residuals:
##      Min       1Q   Median       3Q      Max 
## -2.06274 -0.34911  0.01636  0.34553  1.47905 
## 
## Coefficients:
##                                            Estimate Std. Error t value Pr(>|t|)
## (Intercept)                                 0.06754    0.20545   0.329  0.74370
## Stranger_groupOutgroup                      0.01333    0.27768   0.048  0.96190
## child_nonwhitewhite                        -0.45459    0.25014  -1.817  0.07504
## zTBAQ_SocialFear_14m                        0.22391    0.08198   2.731  0.00864
## Stranger_groupOutgroup:child_nonwhitewhite  0.41971    0.33612   1.249  0.21748
##                                              
## (Intercept)                                  
## Stranger_groupOutgroup                       
## child_nonwhitewhite                        . 
## zTBAQ_SocialFear_14m                       **
## Stranger_groupOutgroup:child_nonwhitewhite   
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.5802 on 51 degrees of freedom
## Multiple R-squared:  0.2533, Adjusted R-squared:  0.1948 
## F-statistic: 4.326 on 4 and 51 DF,  p-value: 0.004341
## 
## Call:
## lm(formula = BI_Stranger_avgZ ~ Stranger_group * implicit_black_white_racial_bias + 
##     zTBAQ_SocialFear_14m, data = data_sub)
## 
## Residuals:
##      Min       1Q   Median       3Q      Max 
## -2.02645 -0.32605 -0.07409  0.37859  1.60376 
## 
## Coefficients:
##                                                         Estimate Std. Error
## (Intercept)                                              0.04978    0.66086
## Stranger_groupOutgroup                                  -0.21721    0.80946
## implicit_black_white_racial_bias                        -1.32118    2.57674
## zTBAQ_SocialFear_14m                                     0.20838    0.08984
## Stranger_groupOutgroup:implicit_black_white_racial_bias  2.03018    3.19602
##                                                         t value Pr(>|t|)  
## (Intercept)                                               0.075    0.940  
## Stranger_groupOutgroup                                   -0.268    0.790  
## implicit_black_white_racial_bias                         -0.513    0.611  
## zTBAQ_SocialFear_14m                                      2.320    0.025 *
## Stranger_groupOutgroup:implicit_black_white_racial_bias   0.635    0.529  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.598 on 45 degrees of freedom
##   (6 observations deleted due to missingness)
## Multiple R-squared:  0.1699, Adjusted R-squared:  0.0961 
## F-statistic: 2.302 on 4 and 45 DF,  p-value: 0.07309
## 
## Call:
## lm(formula = BI_Stranger_avgZ ~ Stranger_group * racial_income_inequality + 
##     zTBAQ_SocialFear_14m, data = data_sub)
## 
## Residuals:
##      Min       1Q   Median       3Q      Max 
## -1.82578 -0.34778 -0.03415  0.42544  1.13717 
## 
## Coefficients:
##                                                   Estimate Std. Error t value
## (Intercept)                                     -3.118e-01  2.591e-01  -1.203
## Stranger_groupOutgroup                           9.285e-02  3.439e-01   0.270
## racial_income_inequality                         1.489e-06  3.737e-06   0.398
## zTBAQ_SocialFear_14m                             2.794e-01  1.031e-01   2.709
## Stranger_groupOutgroup:racial_income_inequality -2.928e-07  5.211e-06  -0.056
##                                                 Pr(>|t|)  
## (Intercept)                                       0.2374  
## Stranger_groupOutgroup                            0.7888  
## racial_income_inequality                          0.6929  
## zTBAQ_SocialFear_14m                              0.0106 *
## Stranger_groupOutgroup:racial_income_inequality   0.9555  
## ---
## Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
## 
## Residual standard error: 0.5589 on 33 degrees of freedom
##   (18 observations deleted due to missingness)
## Multiple R-squared:  0.2126, Adjusted R-squared:  0.1172 
## F-statistic: 2.228 on 4 and 33 DF,  p-value: 0.08732
##    
##     Ingroup Outgroup
##   0      17       11
##   1       8       20
##              Estimate         SE          z         p         LL         UL
## AB:       0.045634921 0.10846467  0.4207353 0.6739484 -0.1669519 0.25822177
## A:        0.004960317 0.05423234  0.0914642 0.9271237 -0.1013331 0.11125374
## B:       -0.008928571 0.05423234 -0.1646356 0.8692308 -0.1152220 0.09736485
## A at b1:  0.047368421 0.10781600  0.4393450 0.6604116 -0.1639471 0.25868389
## A at b2: -0.031468531 0.08622178 -0.3649720 0.7151323 -0.2004601 0.13752305
## B at a1:  0.024291498 0.08992376  0.2701344 0.7870569 -0.1519558 0.20053883
## B at a2: -0.054545455 0.10474828 -0.5207289 0.6025556 -0.2598483 0.15075739