library('intsvy')

Calculate numeracy performance by country

piaac.mean.pv(pvlabel="NUM", by="CNTRYID", data=piaac)
##               CNTRYID  Freq   Mean s.e.    SD  s.e
## 1             Austria  5130 275.04 0.88 48.84 0.64
## 2             Belgium  5463 280.39 0.83 49.27 0.67
## 3              Canada 26683 265.24 0.70 55.60 0.54
## 4      Czech Republic  6102 275.73 0.93 43.59 0.78
## 5             Germany  5465 271.73 1.00 52.68 0.74
## 6             Denmark  7328 278.28 0.73 51.13 0.59
## 7               Spain  6055 245.82 0.62 51.12 0.60
## 8             Estonia  7632 273.12 0.53 45.45 0.48
## 9             Finland  5464 282.23 0.70 52.21 0.67
## 10             France  6993 254.19 0.61 55.93 0.53
## 11     United Kingdom  8892 261.73 1.07 54.49 0.83
## 12            Ireland  5983 255.59 1.02 53.54 0.99
## 13              Italy  4621 247.13 1.06 49.82 0.80
## 14              Japan  5278 288.17 0.74 43.71 0.62
## 15              Korea  6667 263.39 0.69 45.58 0.63
## 16        Netherlands  5170 280.35 0.71 50.49 0.72
## 17             Norway  5128 278.30 0.79 53.60 0.82
## 18             Poland  9366 259.77 0.82 50.72 0.65
## 19 Russian Federation  3892 269.93 2.74 41.98 1.33
## 20    Slovak Republic  5723 275.81 0.79 47.54 0.80
## 21             Sweden  4469 279.05 0.82 54.87 0.75
## 22      United States  5010 252.84 1.17 55.81 1.07

Calculate numeracy performance by country and education level

(num.edu <- piaac.mean.pv(pvlabel="NUM", by=c("CNTRYID", "EDCAT6"), data=piaac))
##                CNTRYID                                                  EDCAT6 Freq   Mean   s.e.    SD   s.e
## 1              Austria  Lower secondary or less (ISCED 1,2, 3C short or less)  1064 245.19   2.00 51.51  1.51
## 2              Austria                    Upper secondary (ISCED 3A-B, C long) 2249 273.30   1.27 43.42  0.91
## 3              Austria             Post-secondary, non-tertiary (ISCED 4A-B-C)  654 298.36   1.92 38.86  1.38
## 4              Austria               Tertiary – professional degree (ISCED 5B)  414 292.09   2.48 40.26  2.16
## 5              Austria                   Tertiary – bachelor degree (ISCED 5A)   94 304.96   6.69 49.04  6.17
## 6              Austria          Tertiary – master/research degree (ISCED 5A/6)  550 316.43   2.00 39.52  1.76
## 7              Austria                                                    <NA>  105    NaN    NaN  0.00  0.00
## 8              Belgium  Lower secondary or less (ISCED 1,2, 3C short or less)  1022 243.56   1.63 50.24  1.30
## 9              Belgium                    Upper secondary (ISCED 3A-B, C long) 2068 273.45   1.19 44.51  0.97
## 10             Belgium             Post-secondary, non-tertiary (ISCED 4A-B-C)  177 278.94   3.44 38.60  2.66
## 11             Belgium               Tertiary – professional degree (ISCED 5B) 1001 300.03   1.45 39.40  1.26
## 12             Belgium                   Tertiary – bachelor degree (ISCED 5A)   96 302.89   4.79 38.81  3.99
## 13             Belgium          Tertiary – master/research degree (ISCED 5A/6)  614 325.78   1.85 38.40  1.80
## 14             Belgium                                                    <NA>  485 242.03  20.16  5.91  2.41
## 15              Canada  Lower secondary or less (ISCED 1,2, 3C short or less)  4856 222.13   2.02 57.64  1.35
## 16              Canada                    Upper secondary (ISCED 3A-B, C long) 6410 256.60   1.41 51.94  1.19
## 17              Canada             Post-secondary, non-tertiary (ISCED 4A-B-C) 4285 263.11   1.82 46.94  1.23
## 18              Canada               Tertiary – professional degree (ISCED 5B) 4881 272.10   1.45 48.27  1.07
## 19              Canada                   Tertiary – bachelor degree (ISCED 5A) 4716 293.71   1.15 48.11  1.19
## 20              Canada          Tertiary – master/research degree (ISCED 5A/6) 1505 299.69   2.21 47.69  1.56
## 21              Canada                                                    <NA>   30 248.39  18.86 60.35 11.94
## 22      Czech Republic  Lower secondary or less (ISCED 1,2, 3C short or less)  1067 248.84   2.43 46.71  1.87
## 23      Czech Republic                    Upper secondary (ISCED 3A-B, C long) 3624 272.42   1.02 38.49  0.85
## 24      Czech Republic             Post-secondary, non-tertiary (ISCED 4A-B-C)  181 284.88   7.33 42.51  7.36
## 25      Czech Republic               Tertiary – professional degree (ISCED 5B)  144 287.07   5.92 33.87  2.96
## 26      Czech Republic                   Tertiary – bachelor degree (ISCED 5A)  238 307.33   4.21 37.08  2.63
## 27      Czech Republic          Tertiary – master/research degree (ISCED 5A/6)  825 313.62   2.72 36.08  2.12
## 28      Czech Republic                                                    <NA>   23 204.13  79.13  9.55 14.05
## 29             Germany  Lower secondary or less (ISCED 1,2, 3C short or less)   912 237.09   2.59 56.96  1.38
## 30             Germany                    Upper secondary (ISCED 3A-B, C long) 2396 262.75   1.28 46.52  0.92
## 31             Germany             Post-secondary, non-tertiary (ISCED 4A-B-C)  373 300.80   3.15 39.55  2.32
## 32             Germany               Tertiary – professional degree (ISCED 5B)  647 286.67   2.54 44.21  2.08
## 33             Germany                   Tertiary – bachelor degree (ISCED 5A)  191 295.15   4.26 46.12  3.62
## 34             Germany          Tertiary – master/research degree (ISCED 5A/6)  856 313.02   1.75 40.74  1.57
## 35             Germany                                                    <NA>   90 184.89  53.32 18.22 11.40
## 36             Denmark  Lower secondary or less (ISCED 1,2, 3C short or less)  1700 248.18   1.73 49.41  1.26
## 37             Denmark                    Upper secondary (ISCED 3A-B, C long) 2596 278.16   1.21 45.79  0.99
## 38             Denmark             Post-secondary, non-tertiary (ISCED 4A-B-C)  127 276.48   5.43 45.20  3.99
## 39             Denmark               Tertiary – professional degree (ISCED 5B) 1413 295.21   1.35 41.68  0.99
## 40             Denmark                   Tertiary – bachelor degree (ISCED 5A)  538 299.43   2.76 48.45  1.87
## 41             Denmark          Tertiary – master/research degree (ISCED 5A/6)  914 315.81   2.11 48.77  1.61
## 42             Denmark                                                    <NA>   40 162.24  72.90 10.35 15.61
## 43               Spain  Lower secondary or less (ISCED 1,2, 3C short or less)  3027 220.44   1.17 49.15  0.87
## 44               Spain                    Upper secondary (ISCED 3A-B, C long) 1159 256.87   1.34 41.07  1.15
## 45               Spain             Post-secondary, non-tertiary (ISCED 4A-B-C)   96 264.44   4.56 36.75  3.64
## 46               Spain               Tertiary – professional degree (ISCED 5B)  469 264.38   2.24 38.90  1.66
## 47               Spain                   Tertiary – bachelor degree (ISCED 5A)  567 275.40   1.81 38.42  1.57
## 48               Spain          Tertiary – master/research degree (ISCED 5A/6)  647 289.62   1.67 36.94  1.51
## 49               Spain                                                    <NA>   90 140.12  22.85 11.27  6.55
## 50             Estonia  Lower secondary or less (ISCED 1,2, 3C short or less)  1412 248.25   1.51 46.11  1.22
## 51             Estonia                    Upper secondary (ISCED 3A-B, C long) 3005 269.16   0.97 43.50  0.70
## 52             Estonia             Post-secondary, non-tertiary (ISCED 4A-B-C)  436 268.95   2.10 39.58  1.83
## 53             Estonia               Tertiary – professional degree (ISCED 5B) 1117 275.54   1.38 38.53  1.12
## 54             Estonia                   Tertiary – bachelor degree (ISCED 5A)  254 300.88   2.98 38.87  2.42
## 55             Estonia          Tertiary – master/research degree (ISCED 5A/6) 1362 300.24   1.37 40.07  1.13
## 56             Estonia                                                    <NA>   46 362.98    NaN  0.00  0.00
## 57             Finland  Lower secondary or less (ISCED 1,2, 3C short or less)   978 254.75   1.89 52.97  1.75
## 58             Finland                    Upper secondary (ISCED 3A-B, C long) 2126 275.44   1.08 49.43  1.14
## 59             Finland             Post-secondary, non-tertiary (ISCED 4A-B-C)  197 276.95   3.61 42.71  3.09
## 60             Finland               Tertiary – professional degree (ISCED 5B)  835 290.79   1.60 41.37  1.37
## 61             Finland                   Tertiary – bachelor degree (ISCED 5A)  675 306.69   2.15 43.70  2.23
## 62             Finland          Tertiary – master/research degree (ISCED 5A/6)  653 322.43   2.57 47.26  3.26
## 63              France  Lower secondary or less (ISCED 1,2, 3C short or less)  1822 216.19   1.08 56.50  1.05
## 64              France                    Upper secondary (ISCED 3A-B, C long) 3006 253.40   0.89 45.12  0.65
## 65              France               Tertiary – professional degree (ISCED 5B)  743 287.38   1.64 40.62  1.21
## 66              France                   Tertiary – bachelor degree (ISCED 5A)  677 292.94   1.70 41.97  1.49
## 67              France          Tertiary – master/research degree (ISCED 5A/6)  650 306.69   1.97 42.81  1.62
## 68              France Tertiary - bachelor/master/research degree (ISCED 5A/6)   18 267.66  10.63 41.77  7.15
## 69              France                                                    <NA>   77 228.71  23.69 23.49  6.61
## 70      United Kingdom  Lower secondary or less (ISCED 1,2, 3C short or less)  2431 224.95   1.72 52.10  1.75
## 71      United Kingdom                    Upper secondary (ISCED 3A-B, C long) 3073 262.32   1.48 48.39  1.26
## 72      United Kingdom             Post-secondary, non-tertiary (ISCED 4A-B-C)   17 254.10  22.72 69.86 10.19
## 73      United Kingdom               Tertiary – professional degree (ISCED 5B)  969 269.27   2.71 47.79  2.04
## 74      United Kingdom Tertiary - bachelor/master/research degree (ISCED 5A/6) 2296 295.30   2.00 46.52  1.59
## 75      United Kingdom                                                    <NA>  106 196.35  18.23 31.48  6.65
## 76             Ireland  Lower secondary or less (ISCED 1,2, 3C short or less)  1449 223.94   1.86 54.39  1.64
## 77             Ireland                    Upper secondary (ISCED 3A-B, C long) 1226 257.47   1.87 44.52  1.45
## 78             Ireland             Post-secondary, non-tertiary (ISCED 4A-B-C) 1087 252.37   2.07 47.94  1.79
## 79             Ireland               Tertiary – professional degree (ISCED 5B)  878 272.63   2.07 44.09  1.92
## 80             Ireland                   Tertiary – bachelor degree (ISCED 5A)  789 291.22   2.46 41.41  1.52
## 81             Ireland          Tertiary – master/research degree (ISCED 5A/6)  536 295.32   2.48 42.74  2.53
## 82             Ireland                                                    <NA>   18  72.62  48.72  0.00  0.00
## 83               Italy  Lower secondary or less (ISCED 1,2, 3C short or less)  1760 229.07   1.49 47.81  1.18
## 84               Italy                    Upper secondary (ISCED 3A-B, C long) 2022 263.49   1.42 42.88  0.83
## 85               Italy             Post-secondary, non-tertiary (ISCED 4A-B-C)   44 278.99   9.31 37.49  4.54
## 86               Italy               Tertiary – professional degree (ISCED 5B)   15 270.12  12.76 36.56  6.45
## 87               Italy                   Tertiary – bachelor degree (ISCED 5A)  659 279.03   2.11 43.75  1.57
## 88               Italy          Tertiary – master/research degree (ISCED 5A/6)   89 289.81   6.92 48.84  5.21
## 89               Italy                                                    <NA>   32    NaN    NaN  0.00  0.00
## 90               Japan  Lower secondary or less (ISCED 1,2, 3C short or less)   746 254.07   2.21 45.55  1.67
## 91               Japan                    Upper secondary (ISCED 3A-B, C long) 1961 281.90   1.35 39.43  0.83
## 92               Japan             Post-secondary, non-tertiary (ISCED 4A-B-C)   93 277.10   6.04 35.46  3.35
## 93               Japan               Tertiary – professional degree (ISCED 5B) 1039 290.67   1.28 36.00  1.06
## 94               Japan                   Tertiary – bachelor degree (ISCED 5A) 1182 316.77   1.29 35.58  1.11
## 95               Japan          Tertiary – master/research degree (ISCED 5A/6)  150 332.61   3.97 34.23  3.07
## 96               Japan                                                    <NA>  107 338.76  21.43  6.29  2.86
## 97               Korea  Lower secondary or less (ISCED 1,2, 3C short or less)  1539 229.66   1.65 49.90  1.26
## 98               Korea                    Upper secondary (ISCED 3A-B, C long) 2641 262.43   0.92 39.54  0.73
## 99               Korea               Tertiary – professional degree (ISCED 5B) 1026 275.04   1.62 34.22  1.18
## 100              Korea                   Tertiary – bachelor degree (ISCED 5A) 1264 291.33   1.40 34.44  0.90
## 101              Korea          Tertiary – master/research degree (ISCED 5A/6)  183 301.69   3.84 38.18  3.46
## 102              Korea                                                    <NA>   14 273.23  16.29  0.00  0.00
## 103        Netherlands  Lower secondary or less (ISCED 1,2, 3C short or less)  1581 248.62   1.54 52.28  1.37
## 104        Netherlands                    Upper secondary (ISCED 3A-B, C long) 1956 284.00   1.14 43.59  1.01
## 105        Netherlands               Tertiary – professional degree (ISCED 5B)  181 292.70   3.48 36.52  2.74
## 106        Netherlands                   Tertiary – bachelor degree (ISCED 5A)  945 305.22   1.64 39.24  1.48
## 107        Netherlands          Tertiary – master/research degree (ISCED 5A/6)  421 319.38   2.17 38.47  1.70
## 108        Netherlands                                                    <NA>   86 266.37  40.98  3.64  5.62
## 109             Norway  Lower secondary or less (ISCED 1,2, 3C short or less)  1229 249.61   1.73 53.52  1.57
## 110             Norway                    Upper secondary (ISCED 3A-B, C long) 1341 274.12   1.59 46.52  1.26
## 111             Norway             Post-secondary, non-tertiary (ISCED 4A-B-C)  477 277.65   2.86 51.62  2.76
## 112             Norway               Tertiary – professional degree (ISCED 5B)  224 295.41   3.59 48.18  3.86
## 113             Norway                   Tertiary – bachelor degree (ISCED 5A) 1014 300.25   1.55 45.33  1.58
## 114             Norway          Tertiary – master/research degree (ISCED 5A/6)  666 314.21   2.03 51.42  2.50
## 115             Norway                                                    <NA>  177 324.63   9.33  0.00  0.00
## 116             Poland  Lower secondary or less (ISCED 1,2, 3C short or less)  1376 234.62   2.19 53.17  1.59
## 117             Poland                    Upper secondary (ISCED 3A-B, C long) 5255 251.75   1.14 47.55  0.98
## 118             Poland             Post-secondary, non-tertiary (ISCED 4A-B-C)  523 267.36   2.31 38.80  2.11
## 119             Poland                   Tertiary – bachelor degree (ISCED 5A)  879 285.00   2.37 41.51  1.74
## 120             Poland          Tertiary – master/research degree (ISCED 5A/6) 1331 291.54   1.67 43.09  1.31
## 121             Poland                                                    <NA>    2 198.49 103.68 40.95 59.91
## 122 Russian Federation  Lower secondary or less (ISCED 1,2, 3C short or less)   281 241.88   6.04 50.39  4.93
## 123 Russian Federation                    Upper secondary (ISCED 3A-B, C long)  715 267.74   3.91 42.17  2.76
## 124 Russian Federation             Post-secondary, non-tertiary (ISCED 4A-B-C)  387 266.58   3.92 41.25  1.82
## 125 Russian Federation               Tertiary – professional degree (ISCED 5B)  914 267.02   2.57 38.54  1.45
## 126 Russian Federation                   Tertiary – bachelor degree (ISCED 5A)  340 281.92   5.11 41.10  2.93
## 127 Russian Federation          Tertiary – master/research degree (ISCED 5A/6) 1253 280.53   2.98 38.87  1.47
## 128 Russian Federation                                                    <NA>    2 285.78  11.73  6.63  3.47
## 129    Slovak Republic  Lower secondary or less (ISCED 1,2, 3C short or less)  1291 241.03   2.00 54.27  1.61
## 130    Slovak Republic                    Upper secondary (ISCED 3A-B, C long) 3402 278.39   0.94 40.34  0.87
## 131    Slovak Republic             Post-secondary, non-tertiary (ISCED 4A-B-C)   23 284.69   9.77 32.97  7.20
## 132    Slovak Republic                   Tertiary – bachelor degree (ISCED 5A)  225 294.75   2.97 37.96  2.81
## 133    Slovak Republic          Tertiary – master/research degree (ISCED 5A/6)  761 307.97   1.61 36.14  1.22
## 134    Slovak Republic                                                    <NA>   21 189.87  16.26  0.00  0.00
## 135             Sweden  Lower secondary or less (ISCED 1,2, 3C short or less)   931 244.50   1.79 54.24  1.50
## 136             Sweden                    Upper secondary (ISCED 3A-B, C long) 1630 275.95   1.22 47.11  1.11
## 137             Sweden             Post-secondary, non-tertiary (ISCED 4A-B-C)  395 299.18   2.55 45.57  3.14
## 138             Sweden               Tertiary – professional degree (ISCED 5B)  440 299.44   2.65 44.77  1.74
## 139             Sweden                   Tertiary – bachelor degree (ISCED 5A)  518 308.05   2.05 45.73  2.29
## 140             Sweden          Tertiary – master/research degree (ISCED 5A/6)  553 313.15   2.41 54.98  2.41
## 141             Sweden                                                    <NA>    2 135.91  64.38 79.28 82.64
## 142      United States  Lower secondary or less (ISCED 1,2, 3C short or less)   629 203.72   2.28 54.55  1.62
## 143      United States                    Upper secondary (ISCED 3A-B, C long) 1977 241.97   1.55 50.78  1.19
## 144      United States             Post-secondary, non-tertiary (ISCED 4A-B-C)  394 250.10   3.15 47.14  2.61
## 145      United States               Tertiary – professional degree (ISCED 5B)  414 267.35   3.14 43.69  2.31
## 146      United States                   Tertiary – bachelor degree (ISCED 5A)  902 287.43   1.69 44.52  1.52
## 147      United States          Tertiary – master/research degree (ISCED 5A/6)  578 301.83   2.59 43.34  2.29
## 148      United States                                                    <NA>  116 142.20  41.52  6.60  3.12

Display mean results by country and education level

Remove NA rows for plot.

num.edu <- num.edu[!is.na(num.edu$EDCAT6), ]
plot.intsvy.mean(num.edu, sort=T)

Calculate average age of participants by country

piaac.mean(variable="AGE_R", by="CNTRYID", data=piaac)
##               CNTRYID Freq  Mean s.e.
## 1             Austria    0   NaN  NaN
## 2             Belgium 5463 41.78 0.03
## 3              Canada    0   NaN  NaN
## 4      Czech Republic 6102 40.54 0.04
## 5             Germany    0   NaN  NaN
## 6             Denmark 7328 41.03 0.04
## 7               Spain 6055 41.31 0.04
## 8             Estonia 7632 40.05 0.03
## 9             Finland 5464 41.40 0.04
## 10             France 6993 40.76 0.03
## 11     United Kingdom 8892 39.95 0.02
## 12            Ireland 5983 38.88 0.04
## 13              Italy 4621 41.11 0.05
## 14              Japan 5278 41.87 0.04
## 15              Korea 6667 39.96 0.03
## 16        Netherlands 5170 41.08 0.04
## 17             Norway 5128 40.08 0.04
## 18             Poland 9366 39.81 0.04
## 19 Russian Federation 3892 39.76 0.05
## 20    Slovak Republic 5723 39.63 0.05
## 21             Sweden 4469 40.67 0.04
## 22      United States    0   NaN  NaN

Produce frequency table of age groups by country

piaac.table(variable="AGEG10LFS", by="CNTRYID", data=piaac)
##                CNTRYID  AGEG10LFS Freq Percentage Std.err.
## 1              Austria 24 or less  898      16.00     0.04
## 2              Austria      25-34  958      19.11     0.06
## 3              Austria      35-44 1117      22.18     0.07
## 4              Austria      45-54 1188      23.83     0.07
## 5              Austria    55 plus  969      18.89     0.04
## 6              Belgium 24 or less  994      15.33     0.03
## 7              Belgium      25-34  961      17.99     0.04
## 8              Belgium      35-44 1116      20.25     0.05
## 9              Belgium      45-54 1275      23.44     0.06
## 10             Belgium    55 plus 1117      22.99     0.04
## 11              Canada 24 or less 4620      17.24     0.01
## 12              Canada      25-34 4574      20.09     0.01
## 13              Canada      35-44 5361      19.54     0.01
## 14              Canada      45-54 6223      22.57     0.01
## 15              Canada    55 plus 5905      20.56     0.01
## 16      Czech Republic 24 or less 1480      16.31     0.09
## 17      Czech Republic      25-34 1346      21.79     0.11
## 18      Czech Republic      35-44 1036      21.84     0.08
## 19      Czech Republic      45-54  837      18.25     0.10
## 20      Czech Republic    55 plus 1403      21.81     0.07
## 21             Denmark 24 or less 1070      17.26     0.02
## 22             Denmark      25-34 1038      17.77     0.03
## 23             Denmark      35-44 1362      21.56     0.03
## 24             Denmark      45-54 1460      21.74     0.03
## 25             Denmark    55 plus 2398      21.66     0.01
## 26             Estonia 24 or less 1355      17.88     0.04
## 27             Estonia      25-34 1432      21.31     0.06
## 28             Estonia      35-44 1566      20.65     0.06
## 29             Estonia      45-54 1551      19.78     0.05
## 30             Estonia    55 plus 1728      20.38     0.04
## 31             Finland 24 or less  895      17.02     0.03
## 32             Finland      25-34 1044      19.26     0.05
## 33             Finland      35-44  971      18.16     0.06
## 34             Finland      45-54 1123      20.79     0.06
## 35             Finland    55 plus 1431      24.77     0.04
## 36              France 24 or less 1099      17.20     0.03
## 37              France      25-34 1222      19.03     0.04
## 38              France      35-44 1425      20.85     0.04
## 39              France      45-54 1539      21.00     0.04
## 40              France    55 plus 1708      21.92     0.03
## 41             Germany 24 or less 1069      15.80     0.04
## 42             Germany      25-34  994      17.81     0.06
## 43             Germany      35-44 1124      22.08     0.07
## 44             Germany      45-54 1309      24.50     0.07
## 45             Germany    55 plus  969      19.80     0.05
## 46             Ireland 24 or less  754      17.40     0.05
## 47             Ireland      25-34 1397      24.36     0.07
## 48             Ireland      35-44 1616      23.30     0.07
## 49             Ireland      45-54 1102      18.56     0.06
## 50             Ireland    55 plus 1114      16.38     0.04
## 51               Italy 24 or less  526      14.40     0.04
## 52               Italy      25-34  791      18.90     0.07
## 53               Italy      35-44 1244      24.44     0.08
## 54               Italy      45-54 1025      21.80     0.08
## 55               Italy    55 plus 1035      20.47     0.05
## 56               Japan 24 or less  785      14.24     0.03
## 57               Japan      25-34  933      18.60     0.06
## 58               Japan      35-44 1242      23.57     0.06
## 59               Japan      45-54 1037      19.27     0.06
## 60               Japan    55 plus 1281      24.32     0.04
## 61               Korea 24 or less 1066      16.49     0.04
## 62               Korea      25-34 1267      19.98     0.04
## 63               Korea      35-44 1534      23.95     0.02
## 64               Korea      45-54 1545      23.08     0.02
## 65               Korea    55 plus 1255      16.51     0.02
## 66         Netherlands 24 or less  894      16.82     0.04
## 67         Netherlands      25-34  801      18.23     0.06
## 68         Netherlands      35-44 1049      21.01     0.06
## 69         Netherlands      45-54 1204      22.51     0.06
## 70         Netherlands    55 plus 1222      21.42     0.04
## 71              Norway 24 or less  977      18.13     0.03
## 72              Norway      25-34  974      19.93     0.06
## 73              Norway      35-44 1110      21.54     0.06
## 74              Norway      45-54 1108      20.86     0.05
## 75              Norway    55 plus  959      19.55     0.04
## 76              Poland 24 or less 4473      17.68     0.02
## 77              Poland      25-34 2101      23.39     0.06
## 78              Poland      35-44  835      18.69     0.06
## 79              Poland      45-54  882      19.55     0.07
## 80              Poland    55 plus 1075      20.69     0.06
## 81  Russian Federation 24 or less 1238      17.41     0.03
## 82  Russian Federation      25-34  830      23.49     0.05
## 83  Russian Federation      35-44  575      18.72     0.04
## 84  Russian Federation      45-54  599      21.18     0.04
## 85  Russian Federation    55 plus  650      19.20     0.03
## 86     Slovak Republic 24 or less 1140      17.73     0.04
## 87     Slovak Republic      25-34 1223      22.83     0.06
## 88     Slovak Republic      35-44 1068      19.93     0.07
## 89     Slovak Republic      45-54 1124      19.63     0.07
## 90     Slovak Republic    55 plus 1168      19.88     0.04
## 91               Spain 24 or less 1000      11.88     0.04
## 92               Spain      25-34 1185      21.11     0.08
## 93               Spain      35-44 1466      24.83     0.06
## 94               Spain      45-54 1313      22.19     0.06
## 95               Spain    55 plus 1091      19.99     0.04
## 96              Sweden 24 or less  842      18.53     0.05
## 97              Sweden      25-34  803      18.70     0.07
## 98              Sweden      35-44  866      20.48     0.08
## 99              Sweden      45-54  926      20.46     0.09
## 100             Sweden    55 plus 1032      21.83     0.06
## 101     United Kingdom 24 or less 1230      17.92     0.00
## 102     United Kingdom      25-34 1860      20.57     0.00
## 103     United Kingdom      35-44 2044      21.23     0.00
## 104     United Kingdom      45-54 1884      21.09     0.00
## 105     United Kingdom    55 plus 1874      19.18     0.00
## 106      United States 24 or less  837      18.63     0.07
## 107      United States      25-34 1045      20.24     0.08
## 108      United States      35-44  978      20.05     0.06
## 109      United States      45-54 1084      21.82     0.07
## 110      United States    55 plus 1066      19.26     0.05

Perform regression of literacy scores on the age of participants

(reg.age<- piaac.reg.pv(pvlabel="LIT", x="AGE_R", by = "CNTRYID", data=piaac))
## $Belgium
##             Estimate Std. Error t value
## (Intercept)   310.14       2.42  128.02
## AGE_R          -0.83       0.05  -15.54
## R-squared       0.06       0.01    8.19
## 
## $`Czech Republic`
##             Estimate Std. Error t value
## (Intercept)   297.28       2.77  107.33
## AGE_R          -0.57       0.06   -9.61
## R-squared       0.04       0.01    4.93
## 
## $Denmark
##             Estimate Std. Error t value
## (Intercept)   297.80       1.87  158.96
## AGE_R          -0.66       0.04  -16.51
## R-squared       0.04       0.00    8.28
## 
## $Spain
##             Estimate Std. Error t value
## (Intercept)   291.58       2.13  137.19
## AGE_R          -0.96       0.05  -18.88
## R-squared       0.07       0.01   10.21
## 
## $Estonia
##             Estimate Std. Error t value
## (Intercept)   304.07       1.83  165.77
## AGE_R          -0.70       0.04  -16.64
## R-squared       0.05       0.01    8.36
## 
## $Finland
##             Estimate Std. Error t value
## (Intercept)   331.91       2.35  141.27
## AGE_R          -1.07       0.06  -19.18
## R-squared       0.10       0.01   10.57
## 
## $France
##             Estimate Std. Error t value
## (Intercept)   299.15       1.60  187.47
## AGE_R          -0.91       0.04  -24.96
## R-squared       0.07       0.01   13.41
## 
## $`United Kingdom`
##             Estimate Std. Error t value
## (Intercept)   277.10       2.83   97.77
## AGE_R          -0.12       0.06   -1.86
## R-squared       0.00       0.00    0.95
## 
## $Ireland
##             Estimate Std. Error t value
## (Intercept)   288.30       2.32  124.40
## AGE_R          -0.56       0.05  -10.22
## R-squared       0.03       0.00    5.22
## 
## $Italy
##             Estimate Std. Error t value
## (Intercept)   278.87       3.37   82.87
## AGE_R          -0.69       0.08   -9.14
## R-squared       0.05       0.01    4.71
## 
## $Japan
##             Estimate Std. Error t value
## (Intercept)   328.84       2.08  158.31
## AGE_R          -0.78       0.05  -16.04
## R-squared       0.08       0.01    8.86
## 
## $Korea
##             Estimate Std. Error t value
## (Intercept)   325.25       2.02  160.67
## AGE_R          -1.32       0.05  -27.55
## R-squared       0.18       0.01   16.83
## 
## $Netherlands
##             Estimate Std. Error t value
## (Intercept)   320.99       2.24  143.15
## AGE_R          -0.90       0.05  -17.76
## R-squared       0.07       0.01    9.10
## 
## $Norway
##             Estimate Std. Error t value
## (Intercept)   293.88       1.97  149.45
## AGE_R          -0.39       0.05   -8.18
## R-squared       0.01       0.00    4.08
## 
## $Poland
##             Estimate Std. Error t value
## (Intercept)   300.91       2.03  147.97
## AGE_R          -0.85       0.05  -16.79
## R-squared       0.06       0.01    8.82
## 
## $`Russian Federation`
##             Estimate Std. Error t value
## (Intercept)   273.43       4.76   57.46
## AGE_R           0.05       0.11    0.42
## R-squared       0.00       0.00    0.24
## 
## $`Slovak Republic`
##             Estimate Std. Error t value
## (Intercept)   285.69       1.96  146.12
## AGE_R          -0.30       0.05   -6.56
## R-squared       0.01       0.00    3.33
## 
## $Sweden
##             Estimate Std. Error t value
## (Intercept)   302.62       2.17  139.52
## AGE_R          -0.58       0.05  -11.54
## R-squared       0.03       0.00    5.79

Display regression results

plot(reg.age)