Subject Mathematics Statistics-R Programming

Question

Categorical Independent Variables
Dataset: daycare_cat.sav
Variables explanations:
ID
Reading: Kindergarten reading score
SES: Socioeconomic Status
Care: Type of pre-kindergarten non-parental care
1: relative care
2: non-relative care
3: center care
4: Head Start
Questions:
1. Use dummy variable coding with Head Start as the reference group.
a. Controlling for SES, does the type of care have a significant effect on Children’s reading score in kindergarten? (Explain it in detail)
b. Please interpret the estimated intercept and the regression coefficients, and their corresponding significance tests.
c. Compute the predicted means of reading for each type with average SES.
2. Use unweighted effects coding with relative care as the base group.
a. Controlling for SES, does the type of care have a significant effect on Children’s reading score in kindergarten? Compare the results with Question1(a).
b. Please interpret the estimated intercept and the regression coefficients, and their corresponding significance tests.
c. Compute the predicted means of reading for each type with average SES? Compare the results with question1(c).

Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

daycarecat <- read.table("daycarecat.csv",header=TRUE,sep=",")
daycarecat$CARE <- as.factor(daycarecat$CARE)
contrasts(daycarecat$CARE) <- contr.treatment(4, base = 4)
fit <- lm(Reading ~ CARE + SES,data=daycarecat)
summary(fit)
# Call:
# lm(formula = Reading ~ CARE + SES, data = daycarecat)
#
# Residuals:
#    Min      1Q Median      3Q    Max
# -14.260 -4.947 -0.715   4.186 16.690
#
# Coefficients:
# Estimate Std. Error t value Pr(>|t|)   
# (Intercept) 19.6558    0.7833 25.095 < 2e-16 ***
# CARE1         0.9569    0.9664   0.990 0.322523   
# CARE2         2.0309    1.0412   1.951 0.051596 .
# CARE3         3.3183    0.8894   3.731 0.000209 ***
# SES          3.2751    0.3628   9.028 < 2e-16 ***...

This is only a preview of the solution. Please use the purchase button to see the entire solution

Assisting Tutor

Related Homework Solutions

Categorical Data Analysis
Homework Solution
$115.00
Mathematics
Statistics
Data Analysis
Logistic Regression
Model Parameters
Terms
Odds Ratio
Discussion
Outliers
Residuals
Observations
Statistics & R Programming Questions
Homework Solution
$20.00
Statistics
R Programming
Mathematics
Variables
Normal Distribution
Random Numbers
Standard Deviation
Mean
Confidence Intervals
Standard Error
Samples
Square Roots
Observations
Histograms
Image Smoothing Function in R
Homework Solution
$33.00
Mathematics
Statistics
Computer Science
R Programming
Smoothing Functions
Matrices
Average Values
Output Values
Rows
Columns
Statistical Analysis
Homework Solution
$25.00
Mathematics
Statistics
Quantitative Variables
Scatterplot
Predictions
Coefficients
Shapes
GPA
Patterns
Sample Sets
Demonstrations
R Programming Problems
Homework Solution
$85.00
Mathematics
Statistics
R Programming
ANOVA
Data
Objects
Functions
Significance
GPA
Relationships
Statements
Dummy Variables
Predictors
Mathematics And Statistics Questions
Homework Solution
$25.00
Mathematics
Statistics
Random Samples
Average Prices
Confidence Intervals
Standard Deviation
Margin Of Error
SAT Scores
Population
Plumbers
Salaries
Mean
Normal Curves
Variables
Probability
Get help from a qualified tutor
Live Chats