Sei sulla pagina 1di 11

R version 3.3.

3 (2017-03-06) -- "Another Canoe"


Copyright (C) 2017 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.


You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.


Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or


'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

[Workspace loaded from ~/.RData]

> 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

package data.table successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\downloaded_packages
> library(data.table)
data.table 1.10.4
The fastest way to learn (by data.table authors):
https://www.datacamp.com/courses/data-analysis-the-data-table-way
Documentation: ?data.table, example(data.table) and browseVignettes("data.table")
Release notes, videos and slides: http://r-datatable.com
> library(data.table)
> DF=fread("~/r new 1/Mroz.csv", data.table=F, na.strings=c("","-"))
'~' is not recognized as an internal or external command,
operable program or batch file.
Error in fread("~/r new 1/Mroz.csv", data.table = F, na.strings = c("", :
File is empty: C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd065ab6713
In addition: Warning messages:
1: running command 'C:\WINDOWS\system32\cmd.exe /c (~/r new 1/Mroz.csv) >
C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd065ab6713' had status 1
2: In shell(paste("(", input, ") > ", tt, sep = "")) :
'(~/r new 1/Mroz.csv) >
C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd065ab6713' execution failed
with error code 1
>
> DF=fread("~/r /colab.csv", data.table=F, na.strings=c("","-"))
'~' is not recognized as an internal or external command,
operable program or batch file.
Error in fread("~/r /colab.csv", data.table = F, na.strings = c("", "-")) :
File is empty: C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd018c5542b
In addition: Warning messages:
1: running command 'C:\WINDOWS\system32\cmd.exe /c (~/r /colab.csv) >
C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd018c5542b' had status 1
2: In shell(paste("(", input, ") > ", tt, sep = "")) :
'(~/r /colab.csv) >
C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd018c5542b' execution failed
with error code 1
> DF=fread("~/R /colab.csv", data.table=F, na.strings=c("","-"))
'~' is not recognized as an internal or external command,
operable program or batch file.
Error in fread("~/R /colab.csv", data.table = F, na.strings = c("", "-")) :
File is empty: C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd04c776dd6
In addition: Warning messages:
1: running command 'C:\WINDOWS\system32\cmd.exe /c (~/R /colab.csv) >
C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd04c776dd6' had status 1
2: In shell(paste("(", input, ") > ", tt, sep = "")) :
'(~/R /colab.csv) >
C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\file2bd04c776dd6' execution failed
with error code 1
> DF=fread("~/R/colab.csv", data.table=F, na.strings=c("","-"))
> DF=na.omit(DF)
> str(DF)
'data.frame': 30723 obs. of 11 variables:
$ base_yr : int 2013 2013 2013 2014 2013 2013 2013 2013 2013 2013 ...
$ proj_no. :integer64 1415129986 1415130025 1415130049 1415135524 1415130171
1415131024 1415131088 1415131170 ...
$ term : int 35 35 11 71 35 35 47 11 59 19 ...
$ govinv :integer64 600000000 400000000 300000000 1950000000 710000000
250000000 960000000 125000000 ...
$ inv : num 6 4 3 19.5 7.1 ...
$ sci : int 0 0 0 9 0 0 0 0 0 0 ...
$ pat : int 1 0 4 9 1 0 18 2 0 0 ...
$ comer : int 0 0 0 0 0 0 3 3 0 0 ...
$ soft_no. : int 0 0 0 0 0 0 0 0 0 0 ...
$ partic : int 1 3 7 6 6 8 5 3 5 1 ...
$ colab_type: int 0 0 0 0 0 0 0 0 0 0 ...
> x<- cbind(term,inv,sci,pat,comer,partic,colab_type )
Error in cbind(term, inv, sci, pat, comer, partic, colab_type) :
object 'term' not found
> x<- cbind(term,inv,sci,pat,comer,partic,colab_type)
Error in cbind(term, inv, sci, pat, comer, partic, colab_type) :
object 'term' not found
> x<- cbind (inv,sci,term,pat,comer,partic,colab_type )
Error in cbind(inv, sci, term, pat, comer, partic, colab_type) :
object 'inv' not found
> x<-cbind(inv,sci,term,pat,comer,partic,colab_type)
Error in cbind(inv, sci, term, pat, comer, partic, colab_type) :
object 'inv' not found
> x<- cbind ("inv","sci","term","pat","comer","partic","colab_type" )
> colab<-manova(cbind(sci,pat,comer)~inv+term+factor(colab_type),data=DF)
> install.packages("car")
Installing package into C:/Users/richa/Documents/R/win-library/3.3
(as lib is unspecified)
also installing the dependencies minqa, nloptr, RcppEigen, lme4,
SparseM, MatrixModels, pbkrtest, quantreg
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/minqa_1.2.4.zip'
Content type 'application/zip' length 667460 bytes (651 KB)
downloaded 651 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/nloptr_1.0.4.zip'


Content type 'application/zip' length 1173042 bytes (1.1 MB)
downloaded 1.1 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

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/lme4_1.1-13.zip'


Content type 'application/zip' length 4723072 bytes (4.5 MB)
downloaded 4.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/SparseM_1.77.zip'


Content type 'application/zip' length 950937 bytes (928 KB)
downloaded 928 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/MatrixModels_0.4-


1.zip'
Content type 'application/zip' length 196278 bytes (191 KB)
downloaded 191 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/pbkrtest_0.4-7.zip'


Content type 'application/zip' length 195922 bytes (191 KB)
downloaded 191 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/quantreg_5.33.zip'


Content type 'application/zip' length 2105835 bytes (2.0 MB)
downloaded 2.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/car_2.1-4.zip'


Content type 'application/zip' length 1484186 bytes (1.4 MB)
downloaded 1.4 MB

package minqa successfully unpacked and MD5 sums checked


package nloptr successfully unpacked and MD5 sums checked
package RcppEigen successfully unpacked and MD5 sums checked
package lme4 successfully unpacked and MD5 sums checked
package SparseM successfully unpacked and MD5 sums checked
package MatrixModels successfully unpacked and MD5 sums checked
package pbkrtest successfully unpacked and MD5 sums checked
package quantreg successfully unpacked and MD5 sums checked
package car successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\downloaded_packages
> library(car)
> require(car)
> summary(Anova(colab))

Type II MANOVA Tests:

Sum of squares and products for error:


sci pat comer
sci 181846.268 46747.11 -5819.721
pat 46747.106 412907.06 13125.400
comer -5819.721 13125.40 1110514.910

------------------------------------------

Term: inv

Sum of squares and products for the hypothesis:


sci pat comer
sci 1581.2064 6996.8441 101.79551
pat 6996.8441 30961.0612 450.44551
comer 101.7955 450.4455 6.55343

Multivariate Tests: inv


Df test stat approx F num Df den Df Pr(>F)
Pillai 1 0.0716826 790.633 3 30717 < 2.22e-16 ***
Wilks 1 0.9283174 790.633 3 30717 < 2.22e-16 ***
Hotelling-Lawley 1 0.0772178 790.633 3 30717 < 2.22e-16 ***
Roy 1 0.0772178 790.633 3 30717 < 2.22e-16 ***
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1

------------------------------------------

Term: term

Sum of squares and products for the hypothesis:


sci pat comer
sci 11033.1692 9763.8474 522.3908
pat 9763.8474 8640.5560 462.2919
comer 522.3908 462.2919 24.7338

Multivariate Tests: term


Df test stat approx F num Df den Df Pr(>F)
Pillai 1 0.0667767 732.6503 3 30717 < 2.22e-16 ***
Wilks 1 0.9332233 732.6503 3 30717 < 2.22e-16 ***
Hotelling-Lawley 1 0.0715549 732.6503 3 30717 < 2.22e-16 ***
Roy 1 0.0715549 732.6503 3 30717 < 2.22e-16 ***
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1

------------------------------------------

Term: factor(colab_type)

Sum of squares and products for the hypothesis:


sci pat comer
sci 2000.1211 -406.98249 -968.4175
pat -406.9825 82.81236 197.0526
comer -968.4175 197.05256 468.8879

Multivariate Tests: factor(colab_type)


Df test stat approx F num Df den Df Pr(>F)
Pillai 1 0.0122470 126.9516 3 30717 < 2.22e-16 ***
Wilks 1 0.9877530 126.9516 3 30717 < 2.22e-16 ***
Hotelling-Lawley 1 0.0123988 126.9516 3 30717 < 2.22e-16 ***
Roy 1 0.0123988 126.9516 3 30717 < 2.22e-16 ***
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1
> install.packages("mvoutlier")
Installing package into C:/Users/richa/Documents/R/win-library/3.3
(as lib is unspecified)
also installing the dependencies modeltools, prettyunits, lmtest,
mvtnorm, pcaPP, flexmix, prabclus, diptest, trimcluster,
progress, reshape, sp, vcd, laeken, pls, e1071,
rrcov, cvTools, fpc, GGally, kernlab, mclust, sROC,
VIM, DEoptimR, sgeostat, robCompositions, robustbase

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/modeltools_0.2-21.zip'


Content type 'application/zip' length 127608 bytes (124 KB)
downloaded 124 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/prettyunits_1.0.2.zip'


Content type 'application/zip' length 27263 bytes (26 KB)
downloaded 26 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/lmtest_0.9-35.zip'


Content type 'application/zip' length 288651 bytes (281 KB)
downloaded 281 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/mvtnorm_1.0-6.zip'


Content type 'application/zip' length 233068 bytes (227 KB)
downloaded 227 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/pcaPP_1.9-61.zip'


Content type 'application/zip' length 455529 bytes (444 KB)
downloaded 444 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/flexmix_2.3-14.zip'


Content type 'application/zip' length 1398135 bytes (1.3 MB)
downloaded 1.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/prabclus_2.2-6.zip'


Content type 'application/zip' length 280547 bytes (273 KB)
downloaded 273 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/diptest_0.75-7.zip'


Content type 'application/zip' length 163760 bytes (159 KB)
downloaded 159 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/trimcluster_0.1-2.zip'


Content type 'application/zip' length 15891 bytes (15 KB)
downloaded 15 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/progress_1.1.2.zip'


Content type 'application/zip' length 42281 bytes (41 KB)
downloaded 41 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/reshape_0.8.6.zip'


Content type 'application/zip' length 127910 bytes (124 KB)
downloaded 124 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/sp_1.2-4.zip'


Content type 'application/zip' length 1530144 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/vcd_1.4-3.zip'


Content type 'application/zip' length 1266567 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/laeken_0.4.6.zip'


Content type 'application/zip' length 2764042 bytes (2.6 MB)
downloaded 2.6 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/pls_2.6-0.zip'


Content type 'application/zip' length 1108622 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/e1071_1.6-8.zip'


Content type 'application/zip' length 894686 bytes (873 KB)
downloaded 873 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rrcov_1.4-3.zip'


Content type 'application/zip' length 1348588 bytes (1.3 MB)
downloaded 1.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/cvTools_0.3.2.zip'


Content type 'application/zip' length 152000 bytes (148 KB)
downloaded 148 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/fpc_2.1-10.zip'


Content type 'application/zip' length 436889 bytes (426 KB)
downloaded 426 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/GGally_1.3.1.zip'


Content type 'application/zip' length 1244328 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/kernlab_0.9-25.zip'


Content type 'application/zip' length 2205869 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/mclust_5.3.zip'


Content type 'application/zip' length 4246303 bytes (4.0 MB)
downloaded 4.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/sROC_0.1-2.zip'


Content type 'application/zip' length 82595 bytes (80 KB)
downloaded 80 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/VIM_4.7.0.zip'


Content type 'application/zip' length 1303405 bytes (1.2 MB)
downloaded 1.2 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/DEoptimR_1.0-8.zip'


Content type 'application/zip' length 39676 bytes (38 KB)
downloaded 38 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/sgeostat_1.0-27.zip'


Content type 'application/zip' length 99737 bytes (97 KB)
downloaded 97 KB

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

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/mvoutlier_2.0.8.zip'


Content type 'application/zip' length 731323 bytes (714 KB)
downloaded 714 KB

package modeltools successfully unpacked and MD5 sums checked


package prettyunits successfully unpacked and MD5 sums checked
package lmtest successfully unpacked and MD5 sums checked
package mvtnorm successfully unpacked and MD5 sums checked
package pcaPP successfully unpacked and MD5 sums checked
package flexmix successfully unpacked and MD5 sums checked
package prabclus successfully unpacked and MD5 sums checked
package diptest successfully unpacked and MD5 sums checked
package trimcluster successfully unpacked and MD5 sums checked
package progress successfully unpacked and MD5 sums checked
package reshape successfully unpacked and MD5 sums checked
package sp successfully unpacked and MD5 sums checked
package vcd successfully unpacked and MD5 sums checked
package laeken successfully unpacked and MD5 sums checked
package pls successfully unpacked and MD5 sums checked
package e1071 successfully unpacked and MD5 sums checked
package rrcov successfully unpacked and MD5 sums checked
package cvTools successfully unpacked and MD5 sums checked
package fpc successfully unpacked and MD5 sums checked
package GGally successfully unpacked and MD5 sums checked
package kernlab successfully unpacked and MD5 sums checked
package mclust successfully unpacked and MD5 sums checked
package sROC successfully unpacked and MD5 sums checked
package VIM successfully unpacked and MD5 sums checked
package DEoptimR successfully unpacked and MD5 sums checked
package sgeostat successfully unpacked and MD5 sums checked
package robCompositions successfully unpacked and MD5 sums checked
package robustbase successfully unpacked and MD5 sums checked
package mvoutlier successfully unpacked and MD5 sums checked

The downloaded binary packages are in


C:\Users\richa\AppData\Local\Temp\RtmpU7oqY6\downloaded_packages
> aq.plot(DF[c("sci","pat","comer")])
Error: could not find function "aq.plot"
> library(mvoutlier)
: sgeostat
sROC 0.1-2 loaded
> library(mvoutlier)
> aq.plot(DF[c("sci","pat","comer")])
Error in solve.default(cov, ...) :
Lapack routine dgesv: system is exactly singular: U[1,1] = 0
In addition: Warning message:
In covMcd(x, alpha = quan) :
The 15363-th order statistic of the absolute deviation of variable 1 is zero.
There are 25451 observations (in the entire dataset of 30723 obs.) lying on the
plane with equation 1 (x_i1-m_1) + 0
(x_i2-m_2) + 0 (x_i3-m_3) = 0 with (m_1,m_2) the mean of these observations.
> bartlett.test(y~G, data=mydata)
Error in eval(expr, envir, enclos) : object 'mydata' not found
> bartlett.test (cbind(sci,pat,comer)~inv+term+factor(colab_type),data=DF)
Error in bartlett.test.formula(cbind(sci, pat, comer) ~ inv + term +
factor(colab_type), :
'formula' response ~ group ; n
> bartlett.test(y~G, data=mydata)
Error in eval(expr, envir, enclos) : object 'mydata' not found
> summary.aov(colab)
Response sci :
Df Sum Sq Mean Sq F value Pr(>F)
inv 1 6950 6949.5 1173.98 < 2.2e-16 ***
term 1 12305 12305.3 2078.72 < 2.2e-16 ***
factor(colab_type) 1 2000 2000.1 337.88 < 2.2e-16 ***
Residuals 30719 181846 5.9
---
Signif. codes: 0 *** 0.001 ** 0.01 * 0.05 . 0.1 1

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

Potrebbero piacerti anche