[R] RQuantLib installation problem

2023-09-23 Thread Naresh Gurbuxani
In my mac, using brew, I installed boost and quantlib packages. But installation of RQuantLib errored out because R could not find libgfortran.5.dylib My mac does have this file, but in a different location. Is there a simple fix to install RQuantLib? Thanks, Naresh ~ $ ls

Re: [R] predict function type class vs. prob

2023-09-23 Thread Rolf Turner
On Fri, 22 Sep 2023 10:12:51 + "Milbert, Sabine (LGL)" wrote: > Dear R Help Team, In addition to other misapprehensions that others have pointed out, you seem to have a fundamental misunderstanding of R-help (and perhaps of R). There is no such thing as the "R Help Team". This is a

Re: [R] How to import an excel data file

2023-09-23 Thread Duncan Murdoch
On 23/09/2023 3:35 p.m., Ivan Krylov wrote: В Fri, 22 Sep 2023 23:10:58 + "Parkhurst, David" пишет: Its location in my Mac files is DFPfiles/ae/FriendsMonroe/KurtzData.csv How exactly---What _, etc.---do I type with its name in the read_excel() function? In RGui on Windows,

Re: [R] How to import an excel data file

2023-09-23 Thread Ivan Krylov
В Fri, 22 Sep 2023 23:10:58 + "Parkhurst, David" пишет: > Its location in my Mac files is > DFPfiles/ae/FriendsMonroe/KurtzData.csv How exactly---What _, > etc.---do I type with its name in the read_excel() function? In RGui on Windows, file.choose() opens a dialog window letting the user

Re: [R] predict function type class vs. prob

2023-09-23 Thread David Winsemius
That's embarrassing. Apologies for the garbles HTML posting. I'll see if this is more readable: On 9/23/23 05:30, Rui Barradas wrote: Às 11:12 de 22/09/2023, Milbert, Sabine (LGL) escreveu: Dear R Help Team, My research group and I use R scripts for our multivariate data screening routines.

Re: [R] predict function type class vs. prob

2023-09-23 Thread Ivan Krylov
В Fri, 22 Sep 2023 10:12:51 + "Milbert, Sabine (LGL)" пишет: > PS: If this is an issue based on the model training function of the > caret package and therefore not your responsibility, please let us > know. Indeed, as Rui Barradas said, predict() is a generic function. Calling it with your

Re: [R] predict function type class vs. prob

2023-09-23 Thread David Winsemius
On 9/23/23 05:30, Rui Barradas wrote: > Às 11:12 de 22/09/2023, Milbert, Sabine (LGL) escreveu: >> Dear R Help Team, >> >> My research group and I use R scripts for our multivariate data >> screening routines. During routine use, we encountered some >> inconsistencies within the predict()

Re: [R] Mantel Haenszel test

2023-09-23 Thread Jeff Newmiller via R-help
?cor cor( M, t( M ) ) On September 23, 2023 7:56:29 AM PDT, tgs77m--- via R-help wrote: >Colleagues, > >I am trying to write a script for the Mantel Haenszel test. > >For the MH test, the test statistic is chi-square (MH) = (W-1) * r^2 >Where W = sum of the case weights. This is straight

Re: [ESS] How to Duplicate Previous Functionality/Workflow

2023-09-23 Thread Tyler Smith via ESS-help
On Fri, Sep 22, 2023, at 2:04 AM, Stephen J. Eglen wrote: >> (You probably didn't do this, because Docview isn't great for >> pdfs. The now abandoned package pdf-tools was a great option for >> reading pdfs inside Emacs). > > just to add a couple of comments: > > 1. pdf-tools was forked about 1-2

Re: [ESS] How to Duplicate Previous Functionality/Workflow

2023-09-23 Thread Dirk Eddelbuettel via ESS-help
On 22 September 2023 at 07:04, Stephen J. Eglen via ESS-help wrote: | 2. A non-answer to the original question, but I prefer writing Makefiles | to build my documents, rather than using Emacs functionality. Emacs has | a good interface to running make (e.g. through M-x compile). Use | whatever

[R] Mantel Haenszel test

2023-09-23 Thread tgs77m--- via R-help
Colleagues, I am trying to write a script for the Mantel Haenszel test. For the MH test, the test statistic is chi-square (MH) = (W-1) * r^2 Where W = sum of the case weights. This is straight forward. I'm having difficulty with r^2. The r^2 is the squared Pearson correlation between row and

Re: [R] predict function type class vs. prob

2023-09-23 Thread Rui Barradas
Às 11:12 de 22/09/2023, Milbert, Sabine (LGL) escreveu: Dear R Help Team, My research group and I use R scripts for our multivariate data screening routines. During routine use, we encountered some inconsistencies within the predict() function of the R Stats Package. Through internal

Re: [R] How to import an excel data file

2023-09-23 Thread Stevie Pederson
Hi David, If you're using RStudio, I'd encourage the use of R Projects, with a new project for each analysis, even if you only do one every few years. That would also correspond to a new directory for each analysis, which many also find helpful. The package 'here' [install.packages("here")] then

Re: [R] How to import an excel data file

2023-09-23 Thread Richard O'Keefe
Are you sure that read.csv() can't read your data? [If you depend on extra packages you might want to consider using the 'groundhog' package so that you can be more confident of reproducing your work in a year or two.] You said that your question is how you should write the name of the file in

Re: [R] How to import an excel data file

2023-09-23 Thread Maria Lathouri via R-help
Dear David,  I also use excel files for R. This is what I do install.packages("readxl") library(readxl) mydata=read_excel('mydata.xlsx') Hope this helps.  Best, Maria Στις Σάββατο 23 Σεπτεμβρίου 2023 στις 09:23:43 π.μ. GMT+1, ο χρήστης Parkhurst, David έγραψε: I know I should save

[R] How to import an excel data file

2023-09-23 Thread Parkhurst, David
I know I should save it as a .csv file, which I have done. I�m told I should use the read_excel() function from the readxl package. My question is, how do I express the location of the file. The file is named KurtzData.csv. Its location in my Mac files is DFPfiles/ae/FriendsMonroe/KurtzData.csv