You are on page 1of 58

R version 4.1.

1 (2021-08-10) -- "Kick Things"

Copyright (C) 2021 The R Foundation for Statistical Computing

Platform: i386-w64-mingw32/i386 (32-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.

Natural language support but running in an English locale

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.

> install.pacages("earth")

Error in install.pacages("earth") :

could not find function "install.pacages"

> install.packages("earth")

--- Please select a CRAN mirror for use in this session ---

also installing the dependencies ‘plotrix’, ‘Formula’, ‘plotmo’, ‘TeachingDemos’


trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/plotrix_3.8-2.zip'

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

downloaded 1.1 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/Formula_1.2-4.zip'

Content type 'application/zip' length 177681 bytes (173 KB)

downloaded 173 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/plotmo_3.6.1.zip'

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

downloaded 1.5 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/TeachingDemos_2.12.zip'

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

downloaded 1.2 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/earth_5.3.1.zip'

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

downloaded 2.1 MB

package ‘plotrix’ successfully unpacked and MD5 sums checked

package ‘Formula’ successfully unpacked and MD5 sums checked

package ‘plotmo’ successfully unpacked and MD5 sums checked

package ‘TeachingDemos’ successfully unpacked and MD5 sums checked

package ‘earth’ successfully unpacked and MD5 sums checked


The downloaded binary packages are in

C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages

> install.packages("caTools")

also installing the dependency ‘bitops’

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/bitops_1.0-7.zip'

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

downloaded 41 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/caTools_1.18.2.zip'

Content type 'application/zip' length 316425 bytes (309 KB)

downloaded 309 KB

package ‘bitops’ successfully unpacked and MD5 sums checked

package ‘caTools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages

> install.packages("corrplot")

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/corrplot_0.90.zip'

Content type 'application/zip' length 2894534 bytes (2.8 MB)

downloaded 2.8 MB

package ‘corrplot’ successfully unpacked and MD5 sums checked


The downloaded binary packages are in

C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages

> install.packages("metrics")

Warning messages:

1: package ‘metrics’ is not available for this version of R

A version of this package for your version of R might be available elsewhere,

see the ideas at

https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages

2: Perhaps you meant ‘Metrics’ ?

> install.packages("Metrics")

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/Metrics_0.1.4.zip'

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

downloaded 80 KB

package ‘Metrics’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages

> install.packages("olsrr")

also installing the dependencies ‘bit’, ‘bit64’, ‘clipr’, ‘vroom’, ‘tzdb’, ‘rematch’, ‘prettyunits’, ‘backports’,
‘generics’, ‘purrr’, ‘stringr’, ‘tidyr’, ‘tidyselect’, ‘evaluate’, ‘highr’, ‘yaml’, ‘xfun’, ‘matrixStats’,
‘RcppArmadillo’, ‘forcats’, ‘hms’, ‘readr’, ‘cpp11’, ‘cellranger’, ‘progress’, ‘zip’, ‘stringi’, ‘colorspace’, ‘cli’,
‘crayon’, ‘utf8’, ‘broom’, ‘dplyr’, ‘magrittr’, ‘numDeriv’, ‘knitr’, ‘SparseM’, ‘MatrixModels’, ‘conquer’, ‘sp’,
‘haven’, ‘curl’, ‘readxl’, ‘openxlsx’, ‘minqa’, ‘nloptr’, ‘RcppEigen’, ‘farver’, ‘labeling’, ‘lifecycle’, ‘munsell’,
‘R6’, ‘RColorBrewer’, ‘viridisLite’, ‘ellipsis’, ‘fansi’, ‘pillar’, ‘pkgconfig’, ‘vctrs’, ‘carData’, ‘abind’, ‘pbkrtest’,
‘quantreg’, ‘maptools’, ‘rio’, ‘lme4’, ‘digest’, ‘glue’, ‘gtable’, ‘isoband’, ‘rlang’, ‘scales’, ‘tibble’, ‘withr’,
‘car’, ‘data.table’, ‘ggplot2’, ‘goftest’, ‘gridExtra’, ‘nortest’, ‘Rcpp’

There are binary versions available but the source versions are later:

binary source needs_compilation

tidyr 1.1.3 1.1.4 TRUE

hms 1.1.0 1.1.1 FALSE

readr 2.0.1 2.0.2 TRUE

lifecycle 1.0.0 1.0.1 FALSE

pillar 1.6.2 1.6.3 FALSE

data.table 1.14.0 1.14.2 TRUE

Binaries will be installed

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/bit_4.0.4.zip'

Content type 'application/zip' length 642395 bytes (627 KB)

downloaded 627 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/bit64_4.0.5.zip'

Content type 'application/zip' length 565404 bytes (552 KB)

downloaded 552 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/clipr_0.7.1.zip'

Content type 'application/zip' length 52723 bytes (51 KB)

downloaded 51 KB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/vroom_1.5.5.zip'

Content type 'application/zip' length 2038798 bytes (1.9 MB)

downloaded 1.9 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/tzdb_0.1.2.zip'

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

downloaded 1.3 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/rematch_1.0.1.zip'

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

downloaded 15 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/prettyunits_1.1.1.zip'

Content type 'application/zip' length 37742 bytes (36 KB)

downloaded 36 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/backports_1.2.1.zip'

Content type 'application/zip' length 98760 bytes (96 KB)

downloaded 96 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/generics_0.1.0.zip'

Content type 'application/zip' length 72088 bytes (70 KB)

downloaded 70 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/purrr_0.3.4.zip'


Content type 'application/zip' length 430678 bytes (420 KB)

downloaded 420 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/stringr_1.4.0.zip'

Content type 'application/zip' length 216673 bytes (211 KB)

downloaded 211 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/tidyr_1.1.3.zip'

Content type 'application/zip' length 1055831 bytes (1.0 MB)

downloaded 1.0 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/tidyselect_1.1.1.zip'

Content type 'application/zip' length 204460 bytes (199 KB)

downloaded 199 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/evaluate_0.14.zip'

Content type 'application/zip' length 76726 bytes (74 KB)

downloaded 74 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/highr_0.9.zip'

Content type 'application/zip' length 46699 bytes (45 KB)

downloaded 45 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/yaml_2.2.1.zip'

Content type 'application/zip' length 207878 bytes (203 KB)


downloaded 203 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/xfun_0.26.zip'

Content type 'application/zip' length 358355 bytes (349 KB)

downloaded 349 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/matrixStats_0.61.0.zip'

Content type 'application/zip' length 594336 bytes (580 KB)

downloaded 580 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/RcppArmadillo_0.10.6.0.0.zip'

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

downloaded 2.6 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/forcats_0.5.1.zip'

Content type 'application/zip' length 357439 bytes (349 KB)

downloaded 349 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/readr_2.0.1.zip'

Content type 'application/zip' length 1805017 bytes (1.7 MB)

downloaded 1.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/cpp11_0.4.0.zip'

Content type 'application/zip' length 327321 bytes (319 KB)

downloaded 319 KB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/cellranger_1.1.0.zip'

Content type 'application/zip' length 104634 bytes (102 KB)

downloaded 102 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/progress_1.2.2.zip'

Content type 'application/zip' length 85985 bytes (83 KB)

downloaded 83 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/zip_2.2.0.zip'

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

downloaded 1.1 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/stringi_1.7.4.zip'

Content type 'application/zip' length 16449857 bytes (15.7 MB)

downloaded 15.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/colorspace_2.0-2.zip'

Content type 'application/zip' length 2644968 bytes (2.5 MB)

downloaded 2.5 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/cli_3.0.1.zip'

Content type 'application/zip' length 759663 bytes (741 KB)

downloaded 741 KB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/crayon_1.4.1.zip'

Content type 'application/zip' length 142538 bytes (139 KB)

downloaded 139 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/utf8_1.2.2.zip'

Content type 'application/zip' length 209979 bytes (205 KB)

downloaded 205 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/broom_0.7.9.zip'

Content type 'application/zip' length 1796877 bytes (1.7 MB)

downloaded 1.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/dplyr_1.0.7.zip'

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

downloaded 1.3 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/magrittr_2.0.1.zip'

Content type 'application/zip' length 236011 bytes (230 KB)

downloaded 230 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/numDeriv_2016.8-1.1.zip'

Content type 'application/zip' length 116205 bytes (113 KB)

downloaded 113 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/knitr_1.34.zip'


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

downloaded 1.4 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/SparseM_1.81.zip'

Content type 'application/zip' length 1066525 bytes (1.0 MB)

downloaded 1.0 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/MatrixModels_0.5-0.zip'

Content type 'application/zip' length 434393 bytes (424 KB)

downloaded 424 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/conquer_1.0.2.zip'

Content type 'application/zip' length 955271 bytes (932 KB)

downloaded 932 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/sp_1.4-5.zip'

Content type 'application/zip' length 1825295 bytes (1.7 MB)

downloaded 1.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/haven_2.4.3.zip'

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

downloaded 1.2 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/curl_4.3.2.zip'

Content type 'application/zip' length 4322380 bytes (4.1 MB)


downloaded 4.1 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/readxl_1.3.1.zip'

Content type 'application/zip' length 1717566 bytes (1.6 MB)

downloaded 1.6 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/openxlsx_4.2.4.zip'

Content type 'application/zip' length 2820946 bytes (2.7 MB)

downloaded 2.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/minqa_1.2.4.zip'

Content type 'application/zip' length 855864 bytes (835 KB)

downloaded 835 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/nloptr_1.2.2.2.zip'

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

downloaded 1.2 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/RcppEigen_0.3.3.9.1.zip'

Content type 'application/zip' length 2870053 bytes (2.7 MB)

downloaded 2.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/farver_2.1.0.zip'

Content type 'application/zip' length 1752715 bytes (1.7 MB)

downloaded 1.7 MB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/labeling_0.4.2.zip'

Content type 'application/zip' length 62679 bytes (61 KB)

downloaded 61 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/munsell_0.5.0.zip'

Content type 'application/zip' length 245073 bytes (239 KB)

downloaded 239 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/R6_2.5.1.zip'

Content type 'application/zip' length 84214 bytes (82 KB)

downloaded 82 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/RColorBrewer_1.1-2.zip'

Content type 'application/zip' length 55707 bytes (54 KB)

downloaded 54 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/viridisLite_0.4.0.zip'

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

downloaded 1.2 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/ellipsis_0.3.2.zip'

Content type 'application/zip' length 49151 bytes (47 KB)

downloaded 47 KB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/fansi_0.5.0.zip'

Content type 'application/zip' length 248761 bytes (242 KB)

downloaded 242 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/pkgconfig_2.0.3.zip'

Content type 'application/zip' length 22244 bytes (21 KB)

downloaded 21 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/vctrs_0.3.8.zip'

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

downloaded 1.2 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/carData_3.0-4.zip'

Content type 'application/zip' length 1822339 bytes (1.7 MB)

downloaded 1.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/abind_1.4-5.zip'

Content type 'application/zip' length 63748 bytes (62 KB)

downloaded 62 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/pbkrtest_0.5.1.zip'

Content type 'application/zip' length 357059 bytes (348 KB)

downloaded 348 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/quantreg_5.86.zip'


Content type 'application/zip' length 1942834 bytes (1.9 MB)

downloaded 1.9 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/maptools_1.1-2.zip'

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

downloaded 2.1 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/rio_0.5.27.zip'

Content type 'application/zip' length 536720 bytes (524 KB)

downloaded 524 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/lme4_1.1-27.1.zip'

Content type 'application/zip' length 5356073 bytes (5.1 MB)

downloaded 5.1 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/digest_0.6.28.zip'

Content type 'application/zip' length 269586 bytes (263 KB)

downloaded 263 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/glue_1.4.2.zip'

Content type 'application/zip' length 155663 bytes (152 KB)

downloaded 152 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/gtable_0.3.0.zip'

Content type 'application/zip' length 434378 bytes (424 KB)


downloaded 424 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/isoband_0.2.5.zip'

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

downloaded 2.6 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/rlang_0.4.11.zip'

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

downloaded 1.1 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/scales_1.1.1.zip'

Content type 'application/zip' length 558560 bytes (545 KB)

downloaded 545 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/tibble_3.1.4.zip'

Content type 'application/zip' length 870708 bytes (850 KB)

downloaded 850 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/withr_2.4.2.zip'

Content type 'application/zip' length 213217 bytes (208 KB)

downloaded 208 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/car_3.0-11.zip'

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

downloaded 1.5 MB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/data.table_1.14.0.zip'

Content type 'application/zip' length 2603259 bytes (2.5 MB)

downloaded 2.5 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/ggplot2_3.3.5.zip'

Content type 'application/zip' length 4130382 bytes (3.9 MB)

downloaded 3.9 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/goftest_1.2-2.zip'

Content type 'application/zip' length 75479 bytes (73 KB)

downloaded 73 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/gridExtra_2.3.zip'

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

downloaded 1.1 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/nortest_1.0-4.zip'

Content type 'application/zip' length 38669 bytes (37 KB)

downloaded 37 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/Rcpp_1.0.7.zip'

Content type 'application/zip' length 3263190 bytes (3.1 MB)

downloaded 3.1 MB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/olsrr_0.5.3.zip'

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

downloaded 2.6 MB

package ‘bit’ successfully unpacked and MD5 sums checked

package ‘bit64’ successfully unpacked and MD5 sums checked

package ‘clipr’ successfully unpacked and MD5 sums checked

package ‘vroom’ successfully unpacked and MD5 sums checked

package ‘tzdb’ successfully unpacked and MD5 sums checked

package ‘rematch’ successfully unpacked and MD5 sums checked

package ‘prettyunits’ successfully unpacked and MD5 sums checked

package ‘backports’ successfully unpacked and MD5 sums checked

package ‘generics’ successfully unpacked and MD5 sums checked

package ‘purrr’ successfully unpacked and MD5 sums checked

package ‘stringr’ successfully unpacked and MD5 sums checked

package ‘tidyr’ successfully unpacked and MD5 sums checked

package ‘tidyselect’ successfully unpacked and MD5 sums checked

package ‘evaluate’ successfully unpacked and MD5 sums checked

package ‘highr’ successfully unpacked and MD5 sums checked

package ‘yaml’ successfully unpacked and MD5 sums checked

package ‘xfun’ successfully unpacked and MD5 sums checked

package ‘matrixStats’ successfully unpacked and MD5 sums checked

package ‘RcppArmadillo’ successfully unpacked and MD5 sums checked

package ‘forcats’ successfully unpacked and MD5 sums checked

package ‘readr’ successfully unpacked and MD5 sums checked


package ‘cpp11’ successfully unpacked and MD5 sums checked

package ‘cellranger’ successfully unpacked and MD5 sums checked

package ‘progress’ successfully unpacked and MD5 sums checked

package ‘zip’ successfully unpacked and MD5 sums checked

package ‘stringi’ successfully unpacked and MD5 sums checked

package ‘colorspace’ successfully unpacked and MD5 sums checked

package ‘cli’ successfully unpacked and MD5 sums checked

package ‘crayon’ successfully unpacked and MD5 sums checked

package ‘utf8’ successfully unpacked and MD5 sums checked

package ‘broom’ successfully unpacked and MD5 sums checked

package ‘dplyr’ successfully unpacked and MD5 sums checked

package ‘magrittr’ successfully unpacked and MD5 sums checked

package ‘numDeriv’ successfully unpacked and MD5 sums checked

package ‘knitr’ successfully unpacked and MD5 sums checked

package ‘SparseM’ successfully unpacked and MD5 sums checked

package ‘MatrixModels’ successfully unpacked and MD5 sums checked

package ‘conquer’ successfully unpacked and MD5 sums checked

package ‘sp’ successfully unpacked and MD5 sums checked

package ‘haven’ successfully unpacked and MD5 sums checked

package ‘curl’ successfully unpacked and MD5 sums checked

package ‘readxl’ successfully unpacked and MD5 sums checked

package ‘openxlsx’ successfully unpacked and MD5 sums checked

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 ‘farver’ successfully unpacked and MD5 sums checked

package ‘labeling’ successfully unpacked and MD5 sums checked

package ‘munsell’ successfully unpacked and MD5 sums checked

package ‘R6’ successfully unpacked and MD5 sums checked

package ‘RColorBrewer’ successfully unpacked and MD5 sums checked

package ‘viridisLite’ successfully unpacked and MD5 sums checked

package ‘ellipsis’ successfully unpacked and MD5 sums checked

package ‘fansi’ successfully unpacked and MD5 sums checked

package ‘pkgconfig’ successfully unpacked and MD5 sums checked

package ‘vctrs’ successfully unpacked and MD5 sums checked

package ‘carData’ successfully unpacked and MD5 sums checked

package ‘abind’ successfully unpacked and MD5 sums checked

package ‘pbkrtest’ successfully unpacked and MD5 sums checked

package ‘quantreg’ successfully unpacked and MD5 sums checked

package ‘maptools’ successfully unpacked and MD5 sums checked

package ‘rio’ successfully unpacked and MD5 sums checked

package ‘lme4’ successfully unpacked and MD5 sums checked

package ‘digest’ successfully unpacked and MD5 sums checked

package ‘glue’ successfully unpacked and MD5 sums checked

package ‘gtable’ successfully unpacked and MD5 sums checked

package ‘isoband’ successfully unpacked and MD5 sums checked

package ‘rlang’ successfully unpacked and MD5 sums checked

package ‘scales’ successfully unpacked and MD5 sums checked

package ‘tibble’ successfully unpacked and MD5 sums checked

package ‘withr’ successfully unpacked and MD5 sums checked


package ‘car’ successfully unpacked and MD5 sums checked

package ‘data.table’ successfully unpacked and MD5 sums checked

package ‘ggplot2’ successfully unpacked and MD5 sums checked

package ‘goftest’ successfully unpacked and MD5 sums checked

package ‘gridExtra’ successfully unpacked and MD5 sums checked

package ‘nortest’ successfully unpacked and MD5 sums checked

package ‘Rcpp’ successfully unpacked and MD5 sums checked

package ‘olsrr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages

installing the source packages ‘hms’, ‘lifecycle’, ‘pillar’

trying URL 'https://repo.bppt.go.id/cran/src/contrib/hms_1.1.1.tar.gz'

Content type 'application/x-gzip' length 43117 bytes (42 KB)

downloaded 42 KB

trying URL 'https://repo.bppt.go.id/cran/src/contrib/lifecycle_1.0.1.tar.gz'

Content type 'application/x-gzip' length 99716 bytes (97 KB)

downloaded 97 KB

trying URL 'https://repo.bppt.go.id/cran/src/contrib/pillar_1.6.3.tar.gz'

Content type 'application/x-gzip' length 1130236 bytes (1.1 MB)

downloaded 1.1 MB
* installing *source* package 'lifecycle' ...

** package 'lifecycle' successfully unpacked and MD5 sums checked

** using staged installation

** R

** inst

** byte-compile and prepare package for lazy loading

** help

*** installing help indices

converting help for package 'lifecycle'

finding HTML links ... done

badge html

deprecate_soft html

deprecated html

expect_deprecated html

last_lifecycle_warnings html

lifecycle-package html

lint_lifecycle html

signal_experimental html

signal_stage html

verbosity html

*** copying figures

** building package indices

** installing vignettes

** testing if installed package can be loaded from temporary location

*** arch - i386


*** arch - x64

** testing if installed package can be loaded from final location

*** arch - i386

*** arch - x64

** testing if installed package keeps a record of temporary installation path

* DONE (lifecycle)

* installing *source* package 'hms' ...

** package 'hms' successfully unpacked and MD5 sums checked

** using staged installation

** R

** byte-compile and prepare package for lazy loading

** help

*** installing help indices

converting help for package 'hms'

finding HTML links ... done

Deprecated html

hms-package html

hms html

finding level-2 HTML links ... done

parse_hms html

round_hms html

vec_cast.hms html

vec_ptype2.hms html

*** copying figures


** building package indices

** testing if installed package can be loaded from temporary location

*** arch - i386

*** arch - x64

** testing if installed package can be loaded from final location

*** arch - i386

*** arch - x64

** testing if installed package keeps a record of temporary installation path

* DONE (hms)

* installing *source* package 'pillar' ...

** package 'pillar' successfully unpacked and MD5 sums checked

** using staged installation

** R

** inst

** byte-compile and prepare package for lazy loading

** help

*** installing help indices

converting help for package 'pillar'

finding HTML links ... done

align html

char html

colonnade html

ctl_new_pillar html

deprecated html

dim_desc html
expect_known_display html

extra_cols html

format_glimpse html

format_tbl html

format_type_sum html

get_extent html

glimpse html

new_ornament html

finding level-2 HTML links ... done

new_pillar html

new_pillar_component html

new_pillar_shaft html

new_pillar_title html

new_pillar_type html

new_tbl_format_setup html

num html

pillar-package html

pillar html

pillar_options html

pillar_shaft html

squeeze html

style_subtle html

tbl_format_body html

tbl_format_footer html
tbl_format_header html

tbl_format_setup html

tbl_sum html

type_sum html

*** copying figures

** building package indices

** installing vignettes

** testing if installed package can be loaded from temporary location

*** arch - i386

*** arch - x64

** testing if installed package can be loaded from final location

*** arch - i386

*** arch - x64

** testing if installed package keeps a record of temporary installation path

* DONE (pillar)

The downloaded source packages are in

‘C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages’

>

>

>

>

>

>

>
>

>

>

>

>

>

>

>

>

>

> install.packages("splines")

Warning message:

package ‘splines’ is a base package, and should not be updated

> install.packages("earth")

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/earth_5.3.1.zip'

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

downloaded 2.1 MB

package ‘earth’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages

> data<- read.table("e:/data.csv", header=TRUE, sep=";")

Error in file(file, "rt") : cannot open the connection

In addition: Warning message:


In file(file, "rt") : cannot open file 'e:/data.csv': Permission denied

> data<- read.table("f:/data.csv", header=TRUE, sep=";")

> print(data)

y.x1.x2.x3.x4.x5.x6

1 11.43,1,16,1,6,2,756723

2 9.97,1,16,2,7,2,411758

3 10.69,1,17,1,7,2,602575

4 9.56,2,17,2,5,1,315000

5 8.43,2,18,1,4,2,538760

6 8.67,2,19,2,3,1,385730

7 8.88,2,20,1,4,1,343327

8 8.8,2,21,2,5,1,358350

9 8.87,2,22,2,6,1,2761910

10 7.31,2,23,2,5,2,658150

11 6.18,2,24,2,8,2,249000

12 4.55,1,24,1,9,2,443710

13 3.98,2,20,2,5,1,338930

14 4.95,1,22,2,6,1,451800

15 3.98,2,21,2,7,1,680400

16 5.26,1,18,2,5,1,403046

17 2.88,2,16,2,4,1,2786440

18 2.77,1,81,2,5,2,2980950

19 5.56,2,17,1,4,2,579411

20 2.73,1,16,2,5,2,320972

21 4.19,2,16,1,6,2,473000
22 4.54,1,16,2,5,1,333000

23 4.49,2,16,1,4,1,390000

24 2.98,1,17,2,5,1,2892030

25 3.16,1,17,1,6,1,303950

26 1.91,2,18,2,3,2,467700

27 3.64,2,19,1,3,2,361853

28 2.94,2,20,2,3,2,549100

29 2.88,2,21,1,3,2,423500

30 1.37,1,22,2,3,2,304100

31 1.17,2,23,1,4,2,588300

32 1.8,2,24,1,4,1,334270

33 4.11,2,24,2,5,2,361966

34 7.6,2,20,2,5,1,2698030

35 7.06,2,22,2,6,1,2722430

36 9.8,2,21,2,2,1,2719430

37 7.38,1,18,1,4,1,2843970

38 2.26,2,16,2,6,2,300400

39 6.39,1,81,2,7,2,2906000

40 5.94,2,17,1,7,2,2968990

41 3.94,1,16,2,4,1,300293

42 6.38,2,16,2,8,2,316850

43 7.93,1,17,2,5,1,313218

44 9.43,2,17,1,5,1,301010

45 11.67,1,17,2,5,1,433450

46 16.5,2,24,2,5,1,405210
47 7.42,1,20,1,5,1,2140100

48 6.92,2,22,1,4,1,2425500

49 5.91,1,21,1,4,2,1728640

50 6.78,1,18,1,4,2,538439

51 7.49,2,16,2,3,1,2615000

52 7.48,2,81,2,4,2,515991

53 10.12,2,17,2,4,2,658820

54 11.13,2,16,2,2,2,493800

55 12.2,1,16,2,2,2,303480

56 12.23,2,16,1,4,2,373368

57 10.48,2,16,1,8,2,343853

58 13.26,1,17,1,7,2,332100

59 17.78,1,17,1,7,1,328215

60 17.67,1,18,2,6,1,357130

61 19.74,1,19,2,6,1,457550

62 14.09,1,20,2,6,1,316100

63 15.77,2,21,1,5,1,358800

64 13.77,1,22,2,6,2,299200

65 14.26,2,23,2,4,2,243000

66 16.41,2,24,2,4,2,384000

67 18.85,1,24,2,4,2,309700

68 18.83,2,20,2,8,1,2819800

69 25.02,1,22,2,8,2,326900

70 23.24,2,21,1,9,2,359300

> str(data)
'data.frame': 70 obs. of 1 variable:

$ y.x1.x2.x3.x4.x5.x6: chr "11.43,1,16,1,6,2,756723" "9.97,1,16,2,7,2,411758"


"10.69,1,17,1,7,2,602575" "9.56,2,17,2,5,1,315000" ...

> print(Datatraining)

Error in print(Datatraining) : object 'Datatraining' not found

> datatraining<- read.table("f:/datatraining.csv", header=TRUE, sep=";")

> print(Datatraining)

Error in print(Datatraining) : object 'Datatraining' not found

> print(datatraining)

X.y.x1.x2.x3.x4.x5.x6

1 6,8.67,2,19,2,3,1,385730

2 7,8.88,2,20,1,4,1,343327

3 8,8.8,2,21,2,5,1,358350

4 9,8.87,2,22,2,6,1,2761910

5 10,7.31,2,23,2,5,2,658150

6 11,6.18,2,24,2,8,2,249000

7 12,4.55,1,24,1,9,2,443710

8 13,3.98,2,20,2,5,1,338930

9 14,4.95,1,22,2,6,1,451800

10 15,3.98,2,21,2,7,1,680400

11 16,5.26,1,18,2,5,1,403046

12 17,2.88,2,16,2,4,1,2786440

13 18,2.77,1,81,2,5,2,2980950

14 19,5.56,2,17,1,4,2,579411

15 20,2.73,1,16,2,5,2,320972

16 21,4.19,2,16,1,6,2,473000
17 22,4.54,1,16,2,5,1,333000

18 23,4.49,2,16,1,4,1,390000

19 24,2.98,1,17,2,5,1,2892030

20 25,3.16,1,17,1,6,1,303950

21 26,1.91,2,18,2,3,2,467700

22 27,3.64,2,19,1,3,2,361853

23 28,2.94,2,20,2,3,2,549100

24 29,2.88,2,21,1,3,2,423500

25 30,1.37,1,22,2,3,2,304100

26 31,1.17,2,23,1,4,2,588300

27 32,1.8,2,24,1,4,1,334270

28 33,4.11,2,24,2,5,2,361966

29 34,7.6,2,20,2,5,1,2698030

30 35,7.06,2,22,2,6,1,2722430

31 36,9.8,2,21,2,2,1,2719430

32 37,7.38,1,18,1,4,1,2843970

33 38,2.26,2,16,2,6,2,300400

34 39,6.39,1,81,2,7,2,2906000

35 40,5.94,2,17,1,7,2,2968990

36 41,3.94,1,16,2,4,1,300293

37 42,6.38,2,16,2,8,2,316850

38 43,7.93,1,17,2,5,1,313218

39 44,9.43,2,17,1,5,1,301010

40 45,11.67,1,17,2,5,1,433450

41 46,16.5,2,24,2,5,1,405210
42 47,7.42,1,20,1,5,1,2140100

43 48,6.92,2,22,1,4,1,2425500

44 49,5.91,1,21,1,4,2,1728640

45 50,6.78,1,18,1,4,2,538439

46 51,7.49,2,16,2,3,1,2615000

47 52,7.48,2,81,2,4,2,515991

48 53,10.12,2,17,2,4,2,658820

49 54,11.13,2,16,2,2,2,493800

50 55,12.2,1,16,2,2,2,303480

51 56,12.23,2,16,1,4,2,373368

52 57,10.48,2,16,1,8,2,343853

53 58,13.26,1,17,1,7,2,332100

54 59,17.78,1,17,1,7,1,328215

55 60,17.67,1,18,2,6,1,357130

56 61,19.74,1,19,2,6,1,457550

57 62,14.09,1,20,2,6,1,316100

58 63,15.77,2,21,1,5,1,358800

59 64,13.77,1,22,2,6,2,299200

60 65,14.26,2,23,2,4,2,243000

61 66,16.41,2,24,2,4,2,384000

62 67,18.85,1,24,2,4,2,309700

63 68,18.83,2,20,2,8,1,2819800

64 69,25.02,1,22,2,8,2,326900

65 70,23.24,2,21,1,9,2,359300

> datatesting<- read.table("f:/datatesting.csv", header=TRUE, sep=";")


> print(datatesting)

X.y.x1.x2.x3.x4.x5.x6

1 1,11.43,1,16,1,6,2,756723

2 2,9.97,1,16,2,7,2,411758

3 3,10.69,1,17,1,7,2,602575

4 4,9.56,2,17,2,5,1,315000

5 5,8.43,2,18,1,4,2,538760

> print(MARS)

Error in print(MARS) : object 'MARS' not found

> library(earth)

Loading required package: Formula

Loading required package: plotmo

Loading required package: plotrix

Loading required package: TeachingDemos

> print(MARS)

Error in print(MARS) : object 'MARS' not found

> print(MARS)

Error in print(MARS) : object 'MARS' not found

> m2=earth(TEAC~.,data=data,penalty=2,pmethod="backward",degree=1,nk=200,nfold=3,keepxy=T)

Error in eval(predvars, data, env) : object 'TEAC' not found

> library(MASS)

> library(tidyverse)

Error in library(tidyverse) : there is no package called ‘tidyverse’

> library(earth)

> library(caret)
Error in library(caret) : there is no package called ‘caret’

> set.seed(2021)

> ?Boston

starting httpd help server ... done

> print(MARS)

Error in print(MARS) : object 'MARS' not found

> library(MARS)

Error in library(MARS) : there is no package called ‘MARS’

> library(earth)

> print(MARS)

Error in print(MARS) : object 'MARS' not found

> print(earth)

function (...)

UseMethod("earth")

<bytecode: 0x0935a378>

<environment: namespace:earth>

> summary(MARS, digit=3, style="max")

Error in summary(MARS, digit = 3, style = "max") :

object 'MARS' not found

>

> > summary(MARS, digit=3, style="max")

Error: unexpected '>' in ">"

> Call: earth(formula=Y~., data=Datatraining, nfold=10)


Error: object 'Call' not found

> Call: earth(formula=Y~., data=Datatraining, nfold=10)

Error: object 'Call' not found

> summary(MARS, digit=3, style="max")

Error in summary(MARS, digit = 3, style = "max") :

object 'MARS' not found

> d=read.table("F:/data.txt",header=T)

> str(d)

'data.frame': 70 obs. of 7 variables:

$ ï..y: num 11.43 9.97 10.69 9.56 8.43 ...

$ x1 : int 1 1 1 2 2 2 2 2 2 2 ...

$ x2 : int 16 16 17 17 18 19 20 21 22 23 ...

$ x3 : int 1 2 1 2 1 2 1 2 2 2 ...

$ x4 : int 6 7 7 5 4 3 4 5 6 5 ...

$ x5 : int 2 2 2 1 2 1 1 1 1 2 ...

$ x6 : int 756723 411758 602575 315000 538760 385730 343327 358350 2761910 658150 ...

> install.packages("earth")

Warning: package ‘earth’ is in use and will not be installed

> library(earth)

> m1=earth(x1~.,data=d,penalty=2,degree=1,nk=200,nfold=10,keepxy=T)

> summary(m1,digits=3)

Call: earth(formula=x1~., data=d, keepxy=T, degree=1, nfold=10, penalty=2,

nk=200)

coefficients
(Intercept) 1.59

Selected 1 of 29 terms, and 0 of 6 predictors

Termination condition: GRSq -10 at 29 terms

Importance: ï..y-unused, x2-unused, x3-unused, x4-unused, x5-unused, ...

Number of terms at each degree of interaction: 1 (intercept only model)

GCV 0.25 RSS 17 GRSq 0 RSq 0 CVRSq -0.387

Note: the cross-validation sd's below are standard deviations across folds

Cross validation: nterms 1.90 sd 0.57 nvars 0.80 sd 0.42

CVRSq sd ClassRate sd MaxErr sd

-0.387 0.481 1 0 -0.915 0.641

> d=read.table("F:/data.txt",header=T)

> str(d)

'data.frame': 35 obs. of 12 variables:

$ ï..: int 1 2 3 4 5 6 7 8 9 10 ...

$ Y : num 11.2 13.5 15.6 15.5 17.5 ...

$ x1 : int 21781 32139 22042 19703 31066 9792 15696 14809 8413 29169 ...

$ x2 : num 73.4 73.5 73 73.9 73.1 ...

$ x3 : num 69.6 71.3 68.4 66.5 68.8 ...

$ x4 : num 48.1 50.1 48.4 47.4 46 ...

$ X5 : num 7.48 4.19 6.06 4 5.52 4.51 3.44 2.91 2.16 3.11 ...

$ x6 : int 261 141 203 52 138 46 103 119 159 0 ...


$ x7 : int 37824 35286 23390 16809 15719 9157 19551 16936 11906 16258 ...

$ x8 : num 62.4 67.5 70.3 71.8 65.5 ...

$ x9 : num 12.5 12.8 12 11.4 13 ...

$ x10: int 1056602 995216 597322 499256 813312 341140 455063 671386 449235 694772 ...

> d=read.table("F:/data.txt",header=T)

Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :

line 1 did not have 12 elements

>

> d=read.table("F:/data.txt",header=T)

Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :

line 1 did not have 12 elements

> d=read.table("F:/data.txt",header=T)

Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :

line 1 did not have 12 elements

> d=read.table("F:/data.txt",header=T)

Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :

line 1 did not have 12 elements

> d=read.table("F:/data.txt",header=T)

Error in scan(file = file, what = what, sep = sep, quote = quote, dec = dec, :

line 1 did not have 12 elements

> d=read.table("F:/data.txt",header=T)

>

> str(d)

'data.frame': 35 obs. of 11 variables:

$ Y : num 11.2 13.5 15.6 15.5 17.5 ...


$ x1 : int 21781 32139 22042 19703 31066 9792 15696 14809 8413 29169 ...

$ x2 : num 73.4 73.5 73 73.9 73.1 ...

$ x3 : num 69.6 71.3 68.4 66.5 68.8 ...

$ x4 : num 48.1 50.1 48.4 47.4 46 ...

$ X5 : num 7.48 4.19 6.06 4 5.52 4.51 3.44 2.91 2.16 3.11 ...

$ x6 : int 261 141 203 52 138 46 103 119 159 0 ...

$ x7 : int 37824 35286 23390 16809 15719 9157 19551 16936 11906 16258 ...

$ x8 : num 62.4 67.5 70.3 71.8 65.5 ...

$ x9 : num 12.5 12.8 12 11.4 13 ...

$ x10: int 1056602 995216 597322 499256 813312 341140 455063 671386 449235 694772 ...

> m1=earth(x1~.,data=d,penalty=2,degree=1,nk=200,nfold=10,keepxy=T)

> summary(m1,digits=3)

Call: earth(formula=x1~., data=d, keepxy=T, degree=1, nfold=10, penalty=2,

nk=200)

coefficients

(Intercept) 16482

h(x3-69.32) 1489

h(X5-3.44) 2973

h(597322-x10) 0

Selected 4 of 15 terms, and 3 of 10 predictors

Termination condition: GRSq -10 at 15 terms

Importance: x10, x3, X5, Y-unused, x2-unused, x4-unused, x6-unused, ...

Number of terms at each degree of interaction: 1 3 (additive model)


GCV 48539059 RSS 1.09e+09 GRSq 0.577 RSq 0.713 CVRSq -3.57

Note: the cross-validation sd's below are standard deviations across folds

Cross validation: nterms 4.90 sd 1.37 nvars 3.30 sd 0.82

CVRSq sd MaxErr sd

-3.58 9.17 -40171 20204

> print(m1)

Selected 4 of 15 terms, and 3 of 10 predictors

Termination condition: GRSq -10 at 15 terms

Importance: x10, x3, X5, Y-unused, x2-unused, x4-unused, x6-unused, ...

Number of terms at each degree of interaction: 1 3 (additive model)

GCV 48539059 RSS 1087274932 GRSq 0.5767614 RSq 0.7129593 CVRSq -3.574852

> summary(m1, digit=3, style="max")

Call: earth(formula=x1~., data=d, keepxy=T, degree=1, nfold=10, penalty=2,

nk=200)

1=

1.65e+04

+ 1489 * max(0, x3 - 69.3)

+ 2973 * max(0, X5 - 3.44)

- 0.0572 * max(0, 597322 - x10)

Selected 4 of 15 terms, and 3 of 10 predictors


Termination condition: GRSq -10 at 15 terms

Importance: x10, x3, X5, Y-unused, x2-unused, x4-unused, x6-unused, ...

Number of terms at each degree of interaction: 1 3 (additive model)

GCV 48539059 RSS 1.09e+09 GRSq 0.577 RSq 0.713 CVRSq -3.57

Note: the cross-validation sd's below are standard deviations across folds

Cross validation: nterms 4.90 sd 1.37 nvars 3.30 sd 0.82

CVRSq sd MaxErr sd

-3.58 9.17 -40171 20204

> evimp(m1)

nsubsets gcv rss

x10 3 100.0 100.0

x3 2 74.6 72.2

X5 1 56.6 51.1

> cor.test(Datatraining$Y,predict(MARS))

Error in cor.test(Datatraining$Y, predict(MARS)) :

object 'Datatraining' not found

>

> cor.test(datatraining$Y,predict(m1))

Error in cor.test.default(datatraining$Y, predict(m1)) :

'x' must be a numeric vector

> library(caret)

Error in library(caret) : there is no package called ‘caret’


> install.packages("caret")

also installing the dependencies ‘listenv’, ‘parallelly’, ‘future’, ‘globals’, ‘future.apply’, ‘progressr’,
‘SQUAREM’, ‘lava’, ‘prodlim’, ‘iterators’, ‘gower’, ‘ipred’, ‘lubridate’, ‘timeDate’, ‘foreach’, ‘plyr’,
‘ModelMetrics’, ‘reshape2’, ‘recipes’, ‘pROC’

There are binary versions available but the source versions are later:

binary source needs_compilation

progressr 0.8.0 0.9.0 FALSE

recipes 0.1.16 0.1.17 FALSE

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/listenv_0.8.0.zip'

Content type 'application/zip' length 106819 bytes (104 KB)

downloaded 104 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/parallelly_1.28.1.zip'

Content type 'application/zip' length 276280 bytes (269 KB)

downloaded 269 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/future_1.22.1.zip'

Content type 'application/zip' length 690322 bytes (674 KB)

downloaded 674 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/globals_0.14.0.zip'

Content type 'application/zip' length 95521 bytes (93 KB)

downloaded 93 KB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/future.apply_1.8.1.zip'

Content type 'application/zip' length 155405 bytes (151 KB)

downloaded 151 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/SQUAREM_2021.1.zip'

Content type 'application/zip' length 183151 bytes (178 KB)

downloaded 178 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/lava_1.6.10.zip'

Content type 'application/zip' length 2993758 bytes (2.9 MB)

downloaded 2.9 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/prodlim_2019.11.13.zip'

Content type 'application/zip' length 421036 bytes (411 KB)

downloaded 411 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/iterators_1.0.13.zip'

Content type 'application/zip' length 343276 bytes (335 KB)

downloaded 335 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/gower_0.2.2.zip'

Content type 'application/zip' length 298218 bytes (291 KB)

downloaded 291 KB
trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/ipred_0.9-12.zip'

Content type 'application/zip' length 400782 bytes (391 KB)

downloaded 391 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/lubridate_1.7.10.zip'

Content type 'application/zip' length 1767995 bytes (1.7 MB)

downloaded 1.7 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/timeDate_3043.102.zip'

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

downloaded 1.5 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/foreach_1.5.1.zip'

Content type 'application/zip' length 146149 bytes (142 KB)

downloaded 142 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/plyr_1.8.6.zip'

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

downloaded 1.4 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/ModelMetrics_1.2.2.2.zip'

Content type 'application/zip' length 863535 bytes (843 KB)

downloaded 843 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/reshape2_1.4.4.zip'


Content type 'application/zip' length 817906 bytes (798 KB)

downloaded 798 KB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/pROC_1.18.0.zip'

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

downloaded 1.5 MB

trying URL 'https://repo.bppt.go.id/cran/bin/windows/contrib/4.1/caret_6.0-88.zip'

Content type 'application/zip' length 6296747 bytes (6.0 MB)

downloaded 6.0 MB

package ‘listenv’ successfully unpacked and MD5 sums checked

package ‘parallelly’ successfully unpacked and MD5 sums checked

package ‘future’ successfully unpacked and MD5 sums checked

package ‘globals’ successfully unpacked and MD5 sums checked

package ‘future.apply’ successfully unpacked and MD5 sums checked

package ‘SQUAREM’ successfully unpacked and MD5 sums checked

package ‘lava’ successfully unpacked and MD5 sums checked

package ‘prodlim’ successfully unpacked and MD5 sums checked

package ‘iterators’ successfully unpacked and MD5 sums checked

package ‘gower’ successfully unpacked and MD5 sums checked

package ‘ipred’ successfully unpacked and MD5 sums checked

package ‘lubridate’ successfully unpacked and MD5 sums checked

package ‘timeDate’ successfully unpacked and MD5 sums checked

package ‘foreach’ successfully unpacked and MD5 sums checked


package ‘plyr’ successfully unpacked and MD5 sums checked

package ‘ModelMetrics’ successfully unpacked and MD5 sums checked

package ‘reshape2’ successfully unpacked and MD5 sums checked

package ‘pROC’ successfully unpacked and MD5 sums checked

package ‘caret’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in

C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages

installing the source packages ‘progressr’, ‘recipes’

trying URL 'https://repo.bppt.go.id/cran/src/contrib/progressr_0.9.0.tar.gz'

Content type 'application/x-gzip' length 107216 bytes (104 KB)

downloaded 104 KB

trying URL 'https://repo.bppt.go.id/cran/src/contrib/recipes_0.1.17.tar.gz'

Content type 'application/x-gzip' length 681531 bytes (665 KB)

downloaded 665 KB

* installing *source* package 'progressr' ...

** package 'progressr' successfully unpacked and MD5 sums checked

** using staged installation

** R

** demo

** inst

** byte-compile and prepare package for lazy loading


** help

*** installing help indices

converting help for package 'progressr'

finding HTML links ... done

global_progression_handler html

handler_ascii_alert html

handler_beepr html

handler_debug html

handler_filesize html

handler_newline html

handler_notifier html

handler_pbcol html

handler_pbmcapply html

handler_progress html

handler_rstudio html

handler_shiny html

handler_tkprogressbar html

handler_txtprogressbar html

handler_void html

handler_winprogressbar html

handlers html

make_progression_handler html

progress html

progress_aggregator html

progress_progressr html
progression html

progressor html

progressr html

progressr.options html

register_global_progression_handler html

slow_sum html

withProgressShiny html

with_progress html

*** copying figures

** building package indices

** installing vignettes

** testing if installed package can be loaded from temporary location

*** arch - i386

*** arch - x64

** testing if installed package can be loaded from final location

*** arch - i386

*** arch - x64

** testing if installed package keeps a record of temporary installation path

* DONE (progressr)

* installing *source* package 'recipes' ...

** package 'recipes' successfully unpacked and MD5 sums checked

** using staged installation

** R

** inst

** byte-compile and prepare package for lazy loading


** help

*** installing help indices

converting help for package 'recipes'

finding HTML links ... done

add_step html

bake html

finding level-2 HTML links ... done

check_class html

check_cols html

check_missing html

check_name html

check_new_values html

check_range html

check_type html

detect_step html

discretize html

fixed html

format_ch_vec html

formula.recipe html

fully_trained html

get_keep_original_cols html

has_role html

juice html

names0 html
prep html

prepper html

print.recipe html

rand_id html

recipe html

recipes-internal html

recipes html

recipes_eval_select html

recipes_pkg_check html

reexports html

required_pkgs.recipe html

roles html

selections html

step html

step_BoxCox html

step_YeoJohnson html

step_arrange html

step_bin2factor html

step_bs html

step_center html

step_classdist html

step_corr html

step_count html

step_cut html

step_date html
step_depth html

step_discretize html

step_downsample html

step_dummy html

step_dummy_multi_choice html

step_factor2string html

step_filter html

step_geodist html

step_harmonic html

step_holiday html

step_hyperbolic html

step_ica html

step_impute_bag html

step_impute_knn html

step_impute_linear html

step_impute_lower html

step_impute_mean html

step_impute_median html

step_impute_mode html

step_impute_roll html

step_indicate_na html

step_integer html

step_interact html

step_intercept html

step_inverse html
step_invlogit html

step_isomap html

step_kpca html

step_kpca_poly html

step_kpca_rbf html

step_lag html

step_lincomb html

step_log html

step_logit html

step_mutate html

step_mutate_at html

step_naomit html

step_nnmf html

step_normalize html

step_novel html

step_ns html

step_num2factor html

step_nzv html

step_ordinalscore html

step_other html

step_pca html

step_pls html

step_poly html

step_profile html

step_range html
step_ratio html

step_regex html

step_relevel html

step_relu html

step_rename html

step_rename_at html

step_rm html

step_sample html

step_scale html

step_select html

step_shuffle html

step_slice html

step_spatialsign html

step_sqrt html

step_string2factor html

step_unknown html

step_unorder html

step_upsample html

step_window html

step_zv html

summary.recipe html

terms_select html

tidy.recipe html

tunable.recipe html

update.step html
*** copying figures

** building package indices

** installing vignettes

** testing if installed package can be loaded from temporary location

*** arch - i386

*** arch - x64

** testing if installed package can be loaded from final location

*** arch - i386

*** arch - x64

** testing if installed package keeps a record of temporary installation path

* DONE (recipes)

The downloaded source packages are in

‘C:\Users\user\AppData\Local\Temp\RtmpMJZrff\downloaded_packages’

> library(caret)

Loading required package: lattice

Loading required package: ggplot2

> Hypergrid= expand.grid(degree=1:3,nprune = seq(3, 100, length.out = 10))

> >print(Hypergrid) #Tuning ,penalty=2, degree=1:3, pmethod="forward", nk=200, nfold = 10,


keepxy = T) #for automating

Error: unexpected '>' in ">"

> Hypergrid= expand.grid(degree=1:3,nprune = seq(3, 100, length.out = 10))

> Hypergrid= expand.grid(degree=1:3,nprune = seq(3, 100, length.out = 10))

> print(Hypergrid)

degree nprune

1 1 3.00000
2 2 3.00000

3 3 3.00000

4 1 13.77778

5 2 13.77778

6 3 13.77778

7 1 24.55556

8 2 24.55556

9 3 24.55556

10 1 35.33333

11 2 35.33333

12 3 35.33333

13 1 46.11111

14 2 46.11111

15 3 46.11111

16 1 56.88889

17 2 56.88889

18 3 56.88889

19 1 67.66667

20 2 67.66667

21 3 67.66667

22 1 78.44444

23 2 78.44444

24 3 78.44444

25 1 89.22222

26 2 89.22222
27 3 89.22222

28 1 100.00000

29 2 100.00000

30 3 100.00000

>

> m1=earth(x1~.,data=d,penalty=2,degree=1,nk=200,nfold=10,keepxy=T)

> summary(m1, digit=3, style="max")

Call: earth(formula=x1~., data=d, keepxy=T, degree=1, nfold=10, penalty=2,

nk=200)

1=

1.65e+04

+ 1489 * max(0, x3 - 69.3)

+ 2973 * max(0, X5 - 3.44)

- 0.0572 * max(0, 597322 - x10)

Selected 4 of 15 terms, and 3 of 10 predictors

Termination condition: GRSq -10 at 15 terms

Importance: x10, x3, X5, Y-unused, x2-unused, x4-unused, x6-unused, ...

Number of terms at each degree of interaction: 1 3 (additive model)

GCV 48539059 RSS 1.09e+09 GRSq 0.577 RSq 0.713 CVRSq -2.14

Note: the cross-validation sd's below are standard deviations across folds

Cross validation: nterms 4.80 sd 1.23 nvars 3.30 sd 0.48


CVRSq sd MaxErr sd

-2.14 5.65 25242 17603

> TunedMARS <- train(x = subset(Datatraining, select = -Y),y =Datatraining$Y,method="earth", metric =


"RMSE",trControl=trainControl(method="cv",number=10),tuneGrid=Hypergrid)

Error in subset(Datatraining, select = -Y) :

object 'Datatraining' not found

> print(Hypergrid)

degree nprune

1 1 3.00000

2 2 3.00000

3 3 3.00000

4 1 13.77778

5 2 13.77778

6 3 13.77778

7 1 24.55556

8 2 24.55556

9 3 24.55556

10 1 35.33333

11 2 35.33333

12 3 35.33333

13 1 46.11111

14 2 46.11111

15 3 46.11111

16 1 56.88889

17 2 56.88889
18 3 56.88889

19 1 67.66667

20 2 67.66667

21 3 67.66667

22 1 78.44444

23 2 78.44444

24 3 78.44444

25 1 89.22222

26 2 89.22222

27 3 89.22222

28 1 100.00000

29 2 100.00000

30 3 100.00000

> Tunedm1$results

Error: object 'Tunedm1' not found

>

You might also like