Re: [R] car::deltaMethod() fails when a particular combination of categorical variables is not present

2023-09-26 Thread John Fox
Dear Michael, My previous response was inaccurate: First, linearHypothesis() *is* able to accommodate aliased coefficients by setting the argument singular.ok = TRUE: > linearHypothesis(minimal_model, "bt2 + csent + bt2:csent = 0", + singular.ok=TRUE) Linear hypothesis test:

Re: [R] data.table installation on intel macOS Ventura 13.6

2023-09-26 Thread Carlos Ortega
Hi, This is the Makevars I used to compile sucessfully the latest version of data.table in a x86_64 machine. #-- #--- https://github.com/Rdatatable/data.table/wiki/Installation #- LOC = /usr/local/gfortran CC=$(LOC)/bin/gcc -fopenmp CXX=$(LOC)/bin/g++ -fopenmp CXX11 = $(LOC)/bin/g

Re: [R] car::deltaMethod() fails when a particular combination of categorical variables is not present

2023-09-26 Thread John Fox
Dear Michael, You're testing a linear hypothesis, so there's no need to use the delta method, but the linearHypothesis() function in the car package also fails in your case: > linearHypothesis(minimal_model, "bt2 + csent + bt2:csent = 0") Error in linearHypothesis.lm(minimal_model, "bt2 + cse

Re: [R] RQuantLib installation problem

2023-09-26 Thread Naresh Gurbuxani
Updating to latest version of R and reinstalling RQuantLib worked. Thanks > On Sep 24, 2023, at 5:29 PM, David Winsemius wrote: > > > On 9/24/23 08:23, Ivan Krylov wrote: >> On Sun, 24 Sep 2023 02:19:20 + >> Naresh Gurbuxani wrote: >> install.packages("RQuantLib", repos = "https:/

Re: [R] save() and load(): *prefer* saveRDS() and readRDS()

2023-09-26 Thread AbouEl-Makarim Aboueissa
Hi Martin: good morning Thank you very much for your detailed explanation. Got it now. With many thanks Abou On Tue, Sep 26, 2023, 3:24 AM Martin Maechler wrote: > > Jeff Newmiller via R-help > > on Mon, 25 Sep 2023 18:46:02 -0700 writes: > > > You never created any object in

Re: [R] save() and load()

2023-09-26 Thread AbouEl-Makarim Aboueissa
Hi Shu: good morning Thank you very much for your detailed explanation. Got it now. With many thanks Abou On Mon, Sep 25, 2023, 9:39 PM Shu Fai Cheung wrote: > Hi, > > You can try this: > > head(irisdata) > > Objects loaded by load() keep their names when being saved. In your > case, it is '

Re: [R] save() and load()

2023-09-26 Thread AbouEl-Makarim Aboueissa
Hi Jeff: good morning Thank you very much for your detailed explanation. Got it now. With many thanks Abou On Mon, Sep 25, 2023, 9:46 PM Jeff Newmiller wrote: > You never created any object in R called irisdataTest. Objects in the > global environment have names that are unrelated to the nam

Re: [R] data.table installation on intel macOS Ventura 13.6

2023-09-26 Thread Naresh Gurbuxani
> Sys.info() sysname "Darwin"

Re: [R] save() and load(): *prefer* saveRDS() and readRDS()

2023-09-26 Thread Martin Maechler
> Jeff Newmiller via R-help > on Mon, 25 Sep 2023 18:46:02 -0700 writes: > You never created any object in R called irisdataTest. Objects in the global environment have names that are unrelated to the names of files on disk. > The load function modifies an environment to crea