Re: [R] Problem when trying to install packages

2024-03-15 Thread javad bayat
 Dear Rui;
Many thanks for your reply. I have installed Rtools (rtools43-5958-5975) on
my PC and I have R version 4.3.3 and 4.3.2 to install. Also I have
installed Rstudio through Anaconda Navigator.
But I do not know how to use Rtools for installing the R packages. I would
be more than happy if you help me.
Sincerely yours



> Dear Rui;
> I hope this email finds you well. I have a problem installing packages in
> Rstudio and R software. When I try to install a package, the software
tries
> to download but after downloading, it gives some errors and does not work.
> I would be more than happy if you please help me to solve this issue.
> Warm regards.
>
>
>> install.packages("openair", type = "source")Installing package into
‘C:/R_Libs’
> (as ‘lib’ is unspecified)Warning in install.packages :
>dependencies ‘lattice’, ‘MASS’ are not availablealso installing the
> dependencies ‘deldir’, ‘RcppEigen’, ‘cli’, ‘glue’, ‘lifecycle’,
> ‘pillar’, ‘rlang’, ‘tibble’, ‘tidyselect’, ‘vctrs’, ‘png’, ‘jpeg’,
> ‘interp’, ‘timechange’, ‘maps’, ‘nlme’, ‘Matrix’, ‘cluster’, ‘dplyr’,
> ‘hexbin’, ‘latticeExtra’, ‘lubridate’, ‘mapproj’, ‘mgcv’, ‘purrr’
> trying URL '
https://cran.rstudio.com/src/contrib/deldir_2.0-4.tar.gz'Content
> type 'application/x-gzip' length 103621 bytes (101 KB)downloaded 101
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/RcppEigen_0.3.4.0.0.tar.gz'Content
> type 'application/x-gzip' length 1765714 bytes (1.7 MB)downloaded 1.7
> MB
> trying URL 'https://cran.rstudio.com/src/contrib/cli_3.6.2.tar.gz'Content
> type 'application/x-gzip' length 569771 bytes (556 KB)downloaded 556
> KB
> trying URL 'https://cran.rstudio.com/src/contrib/glue_1.7.0.tar.gz'Content
> type 'application/x-gzip' length 105420 bytes (102 KB)downloaded 102
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/lifecycle_1.0.4.tar.gz'Content
> type 'application/x-gzip' length 107656 bytes (105 KB)downloaded 105
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/pillar_1.9.0.tar.gz'Content
> type 'application/x-gzip' length 444528 bytes (434 KB)downloaded 434
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/rlang_1.1.3.tar.gz'Content
> type 'application/x-gzip' length 763765 bytes (745 KB)downloaded 745
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/tibble_3.2.1.tar.gz'Content
> type 'application/x-gzip' length 565982 bytes (552 KB)downloaded 552
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/tidyselect_1.2.1.tar.gz'Content
> type 'application/x-gzip' length 103591 bytes (101 KB)downloaded 101
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/vctrs_0.6.5.tar.gz'Content
> type 'application/x-gzip' length 969066 bytes (946 KB)downloaded 946
> KB
> trying URL 'https://cran.rstudio.com/src/contrib/png_0.1-8.tar.gz'Content
> type 'application/x-gzip' length 24880 bytes (24 KB)downloaded 24 KB
> trying URL '
https://cran.rstudio.com/src/contrib/jpeg_0.1-10.tar.gz'Content
> type 'application/x-gzip' length 18667 bytes (18 KB)downloaded 18 KB
> trying URL '
https://cran.rstudio.com/src/contrib/interp_1.1-6.tar.gz'Content
> type 'application/x-gzip' length 1112116 bytes (1.1 MB)downloaded 1.1
> MB
> trying URL '
https://cran.rstudio.com/src/contrib/timechange_0.3.0.tar.gz'Content
> type 'application/x-gzip' length 103439 bytes (101 KB)downloaded 101
> KB
> trying URL 'https://cran.rstudio.com/src/contrib/maps_3.4.2.tar.gz'Content
> type 'application/x-gzip' length 2278051 bytes (2.2 MB)downloaded 2.2
> MB
> trying URL '
https://cran.rstudio.com/src/contrib/nlme_3.1-164.tar.gz'Content
> type 'application/x-gzip' length 836832 bytes (817 KB)downloaded 817
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/Matrix_1.6-5.tar.gz'Content
> type 'application/x-gzip' length 2883851 bytes (2.8 MB)downloaded 2.8
> MB
> trying URL '
https://cran.rstudio.com/src/contrib/cluster_2.1.6.tar.gz'Content
> type 'application/x-gzip' length 369050 bytes (360 KB)downloaded 360
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/dplyr_1.1.4.tar.gz'Content
> type 'application/x-gzip' length 1207521 bytes (1.2 MB)downloaded 1.2
> MB
> trying URL '
https://cran.rstudio.com/src/contrib/hexbin_1.28.3.tar.gz'Content
> type 'application/x-gzip' length 1199967 bytes (1.1 MB)downloaded 1.1
> MB
> trying URL '
https://cran.rstudio.com/src/contrib/latticeExtra_0.6-30.tar.gz'Content
> type 'application/x-gzip' length 1292936 bytes (1.2 MB)downloaded 1.2
> MB
> trying URL '
https://cran.rstudio.com/src/contrib/lubridate_1.9.3.tar.gz'Content
> type 'application/x-gzip' length 428043 bytes (418 KB)downloaded 418
> KB
> trying URL '
https://cran.rstudio.com/src/contrib/mapproj_1.2.11.tar.gz'Content
> type 'application/x-gzip' length 25544 bytes (24 KB)downloaded 24 KB
> trying URL 'https://cran.rstudio.com/src/contrib/mgcv_1.9-1.tar.gz'Content
> type 'application/x-gzip' length 1083217 bytes (1.0 MB)downloaded 1.0
> MB
> trying URL '
https://cran.rstudio.com/src/contrib/purrr_1.0.2.tar.gz'Content
> type 

Re: [R] write.xlsx error message

2024-03-15 Thread Subia Thomas OI-US-LIV5
Good point, indeed it should have been read.xlsx.



Mit freundlichen Gruessen  / Cordialement / Best regards
Thomas Subia
Lean Six Sigma Senior Practitioner

DRÄXLMAIER Group
DAA Draexlmaier Automotive of America LLC
801 Challenger Street
Livermore CA 94551

Ph: 925-978-8111

mailto:thomas.su...@draexlmaier.com
http://www.draexlmaier.com

“Nous croyons en Dieu.
Tous les autres doivent apporter des données.
Edward Deming


Public
-Original Message-
From: gernop...@gmx.net 
Sent: Friday, March 15, 2024 1:07 AM
To: Subia Thomas OI-US-LIV5 ; r-help@r-project.org
Subject: Aw: Re: [R] write.xlsx error message

[You don't often get email from gernop...@gmx.net. Learn why this is important 
at https://aka.ms/LearnAboutSenderIdentification ]

Caution: This email originated from outside the organization. Do not click 
links or open attachments unless you recognize the sender and know the content 
is safe.

I think remember this error from trying to write an Excel file that already 
existed. If this file already exists, try to delete it and see, if this solves 
the issue.

Besides that you're writing that you are "Using write.xlsx to extract data from 
an Excel file", write.xlsx() is to write an Excel file, not to read from it. 
Should be read.xlsx() then iirc.




Gesendet: Freitag, 15. März 2024 um 08:38 Uhr
Von: "Ivan Krylov via R-help" 
An: "Subia Thomas OI-US-LIV5" 
Cc: "r-help@r-project.org" 
Betreff: Re: [R] write.xlsx error message В Thu, 14 Mar 2024 14:12:12 + 
Subia Thomas OI-US-LIV5  пишет:

> Using write.xlsx to extract data from an Excel file, I get this error
> message.
>
>
> Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
> cl, : java.lang.OutOfMemoryError: GC overhead limit exceeded

There seems to be a default limit of 512 megabytes for the Java heap
size:

library(rJava)
getOption('java.parameters')
# [1] "-Xmx512m"

Does if help if you set options(java.parameters = '-Xmx2048m') (or as much as 
you feel comfortable with) before loading XLConnect?

--
Best regards,
Ivan

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html[http://www.R-project.org/posting-guide.html][http://www.R-project.org/posting-guide.html[http://www.R-project.org/posting-guide.html]]
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] [R-pkgs] clusterMI: Cluster Analysis with Missing Values by Multiple Imputation

2024-03-15 Thread Vincent Audigier via R-packages

Dear all,

I am pleased to announce the release of a new package named 'clusterMI' on CRAN.

clusterMI allows clustering of incomplete observations by addressing missing 
values using multiple imputation.

For achieving this goal, the methodology consists in three steps:

1. missing data imputation using tailored imputation models: four multiple 
imputation methods are proposed, two are based on joint modelling (JM-GL and 
JM-DP) and two are fully sequential methods (FCS-homo and FCS-hetero).
2. cluster analysis of imputed data sets: six clustering methods are available 
(kmeans, pam, clara, hierarchical clustering, fuzzy c-means and gaussian 
mixture), but custom methods can also be easily used.
3. partition pooling: the set of partitions is aggregated using NMF based 
method. An associated instability measure is computed by bootstrap. Among 
applications, this instability measure can be used to choose a number of 
clusters with missing values.

The package also offers several diagnostic tools for tuning the number of 
imputed data sets, for checking convergence in sequential imputation, for 
checking the fit of imputation models, etc.

This is the first version of the package, your feedback and suggestions are 
welcome!

Please find more details and download the package from the following 
link:https://cran.r-project.org/package=clusterMI

Best regards,

V. Audigier

--
Vincent AUDIGIER
Associate Professor, CNAM
2 rue Conté 75003 Paris
Office 35.3.21
Tel: 01 40 27 27 19
Website:http://vincentaudigier.weebly.com/

___
R-packages mailing list
r-packa...@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-packages

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] write.xlsx error message

2024-03-15 Thread gernophil--- via R-help


I think remember this error from trying to write an Excel file that already 
existed. If this file already exists, try to delete it and see, if this solves 
the issue.

Besides that you're writing that you are "Using write.xlsx to extract data from 
an Excel file", write.xlsx() is to write an Excel file, not to read from it. 
Should be read.xlsx() then iirc.

 
 

Gesendet: Freitag, 15. März 2024 um 08:38 Uhr
Von: "Ivan Krylov via R-help" 
An: "Subia Thomas OI-US-LIV5" 
Cc: "r-help@r-project.org" 
Betreff: Re: [R] write.xlsx error message
В Thu, 14 Mar 2024 14:12:12 +
Subia Thomas OI-US-LIV5  пишет:

> Using write.xlsx to extract data from an Excel file, I get this error
> message.
>
>
> Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
> cl, : java.lang.OutOfMemoryError: GC overhead limit exceeded

There seems to be a default limit of 512 megabytes for the Java heap
size:

library(rJava)
getOption('java.parameters')
# [1] "-Xmx512m"

Does if help if you set options(java.parameters = '-Xmx2048m') (or
as much as you feel comfortable with) before loading XLConnect?

--
Best regards,
Ivan

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide 
http://www.R-project.org/posting-guide.html[http://www.R-project.org/posting-guide.html][http://www.R-project.org/posting-guide.html[http://www.R-project.org/posting-guide.html]]
and provide commented, minimal, self-contained, reproducible code.
 
 

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] write.xlsx error message

2024-03-15 Thread Ivan Krylov via R-help
В Thu, 14 Mar 2024 14:12:12 +
Subia Thomas OI-US-LIV5  пишет:

> Using write.xlsx to extract data from an Excel file, I get this error
> message.
> 
> 
> Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod",
> cl,  : java.lang.OutOfMemoryError: GC overhead limit exceeded

There seems to be a default limit of 512 megabytes for the Java heap
size:

library(rJava)
getOption('java.parameters')
# [1] "-Xmx512m"

Does if help if you set options(java.parameters = '-Xmx2048m') (or
as much as you feel comfortable with) before loading XLConnect?

-- 
Best regards,
Ivan

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] write.xlsx error message

2024-03-15 Thread Subia Thomas OI-US-LIV5
Colleagues,

Using write.xlsx to extract data from an Excel file, I get this error message.


Error in .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,  :
  java.lang.OutOfMemoryError: GC overhead limit exceeded

I was thinking that this might be a RAM issue but with 16 GB RAM, I wasn't 
expecting this error message.

Any guidance would be appreciated.

Mit freundlichen Gruessen  / Cordialement / Best regards
Thomas Subia
Lean Six Sigma Senior Practitioner

DR�XLMAIER Group
DAA Draexlmaier Automotive of America LLC


mailto:thomas.su...@draexlmaier.com
http://www.draexlmaier.com

"Nous croyons en Dieu.
Tous les autres doivent apporter des donn�es.
Edward Deming



Public

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] CADFtest difference between max.lag.y with criterion and without criterion

2024-03-15 Thread José Dias Curto via R-help
Dear Professor Bernhard,

Sorry for take your time, but I found something strange that I am not able to 
explain/understand.

Suppose that I compute the ADF test by using the criterion="BIC" to select the 
lags:

summary(CADFtest(y, max.lag.y = 20, type = "drift", criterion="BIC"))

Suppose that 2 lags are selected.

Next, if I set the lags to 2: summary(CADFtest(y, max.lag.y = 2, type = 
"drift"))
the ADF test result is different... You can confirm down, please. I think the 
reason is the number of included observations after adjustments... 8533 in the 
first case and 8551 in the second case.
What am I doing wrong?
Thank you very much for your help.
Best regards,
Jos� Dias Curto

> summary(CADFtest(y, max.lag.y = 20, type = "drift", criterion="BIC"))
Augmented DF test
ADF test
t-test statistic:  0.1070651
p-value:   0.9663296
Max lag of the diff. dependent variable:   2.000

Call:
dynlm(formula = formula(model), start = obs.1, end = obs.T)

Residuals:
 Min   1Q   Median   3Q  Max
-116.646   -3.7190.1634.444  110.891

Coefficients:
  Estimate Std. Error t value Pr(>|t|)
(Intercept)  2.758e-01  2.649e-01   1.041 0.297853
L(y, 1)  2.256e-05  2.107e-04   0.107 0.966330
L(d(y), 1)  -5.086e-02  1.085e-02  -4.689 2.78e-06 ***
L(d(y), 2)  -4.030e-02  1.086e-02  -3.710 0.000209 ***
---
Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1

Residual standard error: 12.73 on 8529 degrees of freedom
Multiple R-squared:  0.003998, Adjusted R-squared:  0.003648
F-statistic: 17.12 on 2 and 8529 DF,  p-value: 3.809e-08


> summary(CADFtest(y, max.lag.y = 2, type = "drift"))

Augmented DF test

   ADF test

t-test statistic:  0.111863

p-value:   0.966685

Max lag of the diff. dependent variable:   2.00



Call:

dynlm(formula = formula(model), start = obs.1, end = obs.T)



Residuals:

 Min   1Q   Median   3Q  Max

-116.647   -3.7060.1554.438  110.890



Coefficients:

  Estimate Std. Error t value Pr(>|t|)

(Intercept)  0.2743714  0.2638699   1.040 0.298463

L(y, 1)  0.235  0.0002101   0.112 0.966685

L(d(y), 1)  -0.0508659  0.0108353  -4.694 2.71e-06 ***

L(d(y), 2)  -0.0403022  0.0108507  -3.714 0.000205 ***

---

Signif. codes:  0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1



Residual standard error: 12.72 on 8547 degrees of freedom

Multiple R-squared:  0.003999, Adjusted R-squared:  0.003649

F-statistic: 17.16 on 2 and 8547 DF,  p-value: 3.662e-08



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.