Académique Documents
Professionnel Documents
Culture Documents
library(vcd)
load("N:/48-308/Arnold/tea2.Rdata")
attach(tea2)
table(taste)
table(age)
table(ed)
table(taste,ed)
table(taste,age)
table(ed,age)
# ed
# taste 1 2
# 1 1020 596
# 2 280 404
OR # 2.469319
Q # .423518 - clearly, high education is linked to classical music
# 1 2
# 1 290 406
# 2 110 194
# 1 730 190
# 2 170 210
# we will get the two ORs and Qs before going to the doubledecker
OR1 # 1.25974
Q1 # .1149425 Q for the younger age group is down considerably
# from its value for the full sample
OR2 # 4.74613
Q2 # .6519397 Q for the older age group is much higher.
load("N:/48-308/Arnold/socy211.Rdata")
attach(socy211)
table(prevdrop)
table(mathcon2)
#summary(mp)
# Coefficients:
# Estimate Std. Error t value Pr(>|t|)
# (Intercept) 12.25871 12.28433 0.998 0.32094
# prevdrop 15.72806 3.24274 4.850 5.0e-06 ***
# mathcon2 18.12507 3.36790 5.382 5.6e-07 ***
# thinkfee 0.21157 0.09176 2.306 0.02338 *
# auditory 0.80218 0.25883 3.099 0.00257 **
# feelings -0.67540 0.30353 -2.225 0.02852 *
# sensintu -0.10953 0.19646 -0.558 0.57853
# ---
# Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
# Coefficients:
# Estimate Std. Error t value Pr(>|t|)
# (Intercept) 11.1743 11.1061 1.006 0.31688
# prevdrop 16.8046 3.1941 5.261 8.70e-07 ***
# mathcon2 16.7782 3.2862 5.106 1.67e-06 ***
# thinkfee 0.1927 0.0877 2.198 0.03038 *
# auditory 0.8100 0.2607 3.108 0.00248 **
# feelings -0.6828 0.3029 -2.254 0.02645 *
# ---
# Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1