Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
> setwd("~/R")
> read.csv("~/R/colab.csv")
base_yr proj_no. term govinv inv sci pat comer soft_no.
partic colab_type
1 2013 1415129986 35 600000000 6.00000000 0 1 0 0
1 0
2 2013 1415130025 35 400000000 4.00000000 0 0 0 0
3 0
3 2013 1415130049 11 300000000 3.00000000 0 4 0 0
7 0
4 2014 1415135524 71 1950000000 19.50000000 9 9 0 0
6 0
5 2013 1415130171 35 710000000 7.10000000 0 1 0 0
6 0
6 2013 1415131024 35 250000000 2.50000000 0 0 0 0
8 0
7 2013 1415131088 47 960000000 9.60000000 0 18 3 0
5 0
8 2013 1415131170 11 125000000 1.25000000 0 2 3 0
3 0
9 2013 1415131172 59 1600000000 16.00000000 0 0 0 0
5 0
10 2013 1375025783 19 274880000 2.74880000 0 0 0 0
1 0
11 2013 1615006834 34 300000000 3.00000000 0 0 0 0
7 0
12 2013 1425083546 23 273800000 2.73800000 0 0 0 0
6 0
13 2013 1415130087 23 100000000 1.00000000 0 0 0 0
6 0
14 2013 1415130030 35 570000000 5.70000000 0 0 0 0
3 0
15 2013 1415131384 35 460000000 4.60000000 0 0 0 0
8 0
16 2013 1415130007 11 200000000 2.00000000 0 1 0 0
5 0
17 2013 1415130055 35 550000000 5.50000000 0 1 0 0
4 0
18 2013 1415130282 23 270000000 2.70000000 0 7 0 0
17 0
19 2013 1415130254 47 955000000 9.55000000 0 2 0 0
6 0
20 2013 1415130192 59 1000000000 10.00000000 0 0 0 0
5 0
21 2013 1415130992 11 147500000 1.47500000 0 6 3 0
3 0
22 2013 1415131029 43 1900000000 19.00000000 0 20 0 0
7 0
23 2013 1415130507 11 338000000 3.38000000 0 0 0 0
4 0
24 2013 1415130175 35 1118000000 11.18000000 0 4 0 0
0 0
25 2013 1415130611 71 2226000000 22.26000000 5 1 0 3
7 0
26 2013 1415130165 35 650000000 6.50000000 0 7 0 0
3 0
27 2013 1415130208 23 190000000 1.90000000 0 0 1 0
3 0
28 2013 1415130450 11 275000000 2.75000000 0 6 0 0
0 0
29 2013 1415131060 11 138333000 1.38333000 0 0 0 0
1 0
30 2013 1415131103 11 123000000 1.23000000 0 0 1 0
2 0
31 2013 1415131670 57 375000000 3.75000000 3 5 0 0
10 0
32 2013 1615006762 35 188000000 1.88000000 1 2 0 1
3 0
33 2013 1415131430 61 1320000000 13.20000000 1 0 0 0
20 0
34 2013 1415131221 47 2000000000 20.00000000 0 12 0 0
0 0
35 2013 1415130510 59 870000000 8.70000000 0 0 0 0
6 0
36 2013 1415131248 35 480000000 4.80000000 0 1 0 0
3 0
37 2013 1415131382 11 140000000 1.40000000 0 0 1 0
2 0
38 2013 1615006767 23 270000000 2.70000000 0 3 0 0
8 0
39 2013 1415130999 11 190000000 1.90000000 0 2 3 0
4 0
40 2013 1415130997 11 129500000 1.29500000 0 0 2 0
5 0
41 2013 1415130524 35 1000000000 10.00000000 0 0 0 0
10 0
42 2013 1415130491 11 90000000 0.90000000 0 1 2 0
2 0
43 2013 1415131709 47 860000000 8.60000000 0 2 0 0
3 0
44 2013 1415131511 59 1800000000 18.00000000 2 8 0 0
12 0
45 2013 1415130465 35 2350000000 23.50000000 1 0 0 0
7 0
46 2013 1415131044 35 1500000000 15.00000000 1 2 0 0
13 0
47 2013 1415131165 11 185000000 1.85000000 0 0 1 0
2 0
48 2013 1415131129 35 500000000 5.00000000 0 6 0 0
5 0
49 2013 1415131099 11 126000000 1.26000000 0 1 2 0
2 0
50 2013 1415131336 119 450000000 4.50000000 0 5 0 0
6 0
51 2013 1615006775 35 208000000 2.08000000 0 1 0 0
3 0
52 2013 1415131271 35 720000000 7.20000000 0 0 1 0
6 0
53 2013 1415131069 11 156660000 1.56660000 0 0 1 0
3 0
54 2013 1415131083 11 120000000 1.20000000 0 0 2 0
2 0
55 2013 1415131111 11 148333000 1.48333000 0 0 3 0
3 0
56 2013 1415131878 35 400000000 4.00000000 5 1 0 0
34 0
57 2013 1711006076 23 380000000 3.80000000 0 2 1 0
4 0
58 2013 1415131328 23 300000000 3.00000000 0 0 0 0
4 0
59 2013 1415131785 35 300000000 3.00000000 0 1 0 0
9 0
60 2013 1711005119 59 1430000000 14.30000000 5 5 0 0
10 0
61 2013 1665006137 30 460000000 4.60000000 0 3 0 0
8 0
62 2013 1415131240 83 1930000000 19.30000000 2 7 0 0
11 0
63 2013 1415131344 35 187500000 1.87500000 0 0 0 0
2 0
64 2013 1415131891 35 850000000 8.50000000 0 6 0 0
9 0
65 2013 1415131206 35 400000000 4.00000000 0 0 0 0
1 0
66 2013 1711006252 11 1400000000 14.00000000 0 1 0 0
14 0
67 2013 1415131252 23 420000000 4.20000000 0 0 3 0
1 0
68 2013 1415131907 23 400000000 4.00000000 0 0 0 0
9 0
69 2013 1711006403 59 2900000000 29.00000000 1 9 0 0
7 0
70 2013 1711006451 35 2000000000 20.00000000 0 16 0 0
11 0
71 2013 1415132198 35 1800000000 18.00000000 0 1 0 0
38 0
72 2013 1711006399 35 1500000000 15.00000000 0 4 2 2
4 0
73 2013 1711006395 15 900000000 9.00000000 0 0 0 0
13 0
74 2013 1415131729 57 3531000000 35.31000000 2 3 0 0
3 0
75 2013 1711006134 59 2200000000 22.00000000 1 14 0 0
9 0
76 2013 1711006112 23 370000000 3.70000000 0 0 0 0
3 0
77 2014 1415134883 23 840000000 8.40000000 0 0 0 0
0 0
78 2014 1415134873 11 292000000 2.92000000 0 32 1 0
5 0
79 2013 1415131695 59 900000000 9.00000000 1 6 0 0
4 0
80 2013 1415131391 23 1400000000 14.00000000 0 0 0 0
12 0
81 2013 1415131643 47 410000000 4.10000000 15 8 0 0
18 0
82 2013 1415131530 47 1800000000 18.00000000 9 17 1 0
15 0
83 2013 1415131565 59 1430000000 14.30000000 1 19 1 0
12 0
84 2013 1415131747 33 630000000 6.30000000 0 0 0 0
4 0
85 2013 1415131796 47 100000000 1.00000000 0 0 0 0
8 0
86 2013 1711006143 23 390000000 3.90000000 0 3 1 0
5 0
87 2013 1415131797 47 119000000 1.19000000 0 0 2 0
9 0
88 2013 1415131868 47 3000000000 30.00000000 0 1 0 0
6 0
89 2013 1711006121 62 1355000000 13.55000000 7 11 2 0
18 0
90 2013 1711006206 23 380000000 3.80000000 0 0 0 0
2 0
[ reached getOption("max.print") -- omitted 30633 rows ]
> install.packages("data.table")
Installing package into C:/Users/richa/Documents/R/win-library/3.3
(as lib is unspecified)
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/data.table_1.10.4.zip'
Content type 'application/zip' length 1502201 bytes (1.4 MB)
downloaded 1.4 MB
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.3/RcppEigen_0.3.3.3.0.zip'
Content type 'application/zip' length 2666939 bytes (2.5 MB)
downloaded 2.5 MB
------------------------------------------
Term: inv
------------------------------------------
Term: term
------------------------------------------
Term: factor(colab_type)
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.3/robCompositions_2.0.3.zip'
Content type 'application/zip' length 1822674 bytes (1.7 MB)
downloaded 1.7 MB
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/robustbase_0.92-7.zip'
Content type 'application/zip' length 3246328 bytes (3.1 MB)
downloaded 3.1 MB
Response pat :
Df Sum Sq Mean Sq F value Pr(>F)
inv 1 52087 52087 3875.102 < 2e-16 ***
term 1 8560 8560 636.865 < 2e-16 ***
factor(colab_type) 1 83 83 6.161 0.01307 *
Residuals 30719 412907 13
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
Response comer :
Df Sum Sq Mean Sq F value Pr(>F)
inv 1 33 33.27 0.9202 0.337422
term 1 6 6.23 0.1723 0.678115
factor(colab_type) 1 469 468.89 12.9703 0.000317 ***
Residuals 30719 1110515 36.15
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1