# 1 Assignment 02

Central question: What determines the number of praises in child-caretaker interaction? The data come from recording of different children and contain the following variables :

• PRAISES: the response variable, the number of times the children are praised by their caretakers;
• CHILD: the name of each child;
• SEX: the sex of each child;
• CAN: the number of verb phrases where the caretakers use can when speaking about actions of the child;
• WANT: the number of verb phrases where the caretakers use want when speaking about actions of the child;
• SHOULD_SHALL: the number of verb phrases where the caretakers use should/shall when speaking about actions of the child;
• DIRECTIVE: the number of verb phrases where the caretakers uses a directive when speaking about actions of the child;
• SUCCESS: the number of times the child does something as intended;
• FAILURE: the number of times the child does something not as intended.

You now want to determine to what degree the number of praises is a function of

• all predictors as main effects
• and interaction of a predictor with SEX.

Analyze the data with properly and summarize the results (briefly).

rm(list=ls(all.names=TRUE))
file="105_11_praises.csv", # this file
stringsAsFactors=TRUE)) # change categorical variables into factors
##      CHILD    SEX       PRAISES          CAN              WANT
##  aRetha : 1   f:15   Min.   : 0.0   Min.   : 0.000   Min.   : 0.00
##  aRnold : 1   m:13   1st Qu.: 2.0   1st Qu.: 1.000   1st Qu.: 0.75
##  baRbara: 1          Median : 5.0   Median : 4.000   Median : 2.00
##  beRnard: 1          Mean   : 5.5   Mean   : 4.321   Mean   : 3.25
##  chRis  : 1          3rd Qu.: 7.5   3rd Qu.: 5.250   3rd Qu.: 6.00
##  chRissy: 1          Max.   :13.0   Max.   :18.000   Max.   :10.00
##  (Other):22
##   SHOULD_SHALL      DIRECTIVE        SUCCESS          FAILURE
##  Min.   :0.0000   Min.   : 0.00   Min.   : 0.000   Min.   :0.000
##  1st Qu.:0.0000   1st Qu.: 9.00   1st Qu.: 4.000   1st Qu.:1.000
##  Median :0.0000   Median :12.00   Median : 6.500   Median :3.000
##  Mean   :0.8929   Mean   :15.61   Mean   : 7.679   Mean   :3.286
##  3rd Qu.:1.2500   3rd Qu.:19.50   3rd Qu.:10.000   3rd Qu.:5.250
##  Max.   :6.0000   Max.   :46.00   Max.   :18.000   Max.   :8.000
##