Re: [R] Column names of model.matrix's output with contrast.arg

2024-06-14 Thread peter dalgaard
> Christophe DUTANG > LJK, Ensimag, Grenoble INP, UGA, France > ILB research fellow > Web: http://dutangc.free.fr > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo

[R] [Rd] R 4.4.1 is released

2024-06-14 Thread peter dalgaard
z or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. (The Mac binaries will be delayed for a couple of days because the maintainer is traveling.) For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the fresh

Re: [R] R code for overlapping variables -- count

2024-06-03 Thread peter dalgaard
t; > Thank you so much, > Shadee > > [[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/p

[R] [Rd] R 4.4.1 scheduled for June 14

2024-05-31 Thread peter dalgaard
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] R, RStudio, and a server for my iPad.

2024-05-21 Thread peter dalgaard
t.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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg

Re: [R] De-serialization vulnerability?

2024-05-02 Thread peter dalgaard
: Documentation fixups, etc. What does go in is end-user visible functional changes and items that have an explicit PR# against them. - Peter D. > On 1 May 2024, at 18:57 , Howard, Tim G (DEC) via R-help > wrote: > > All, > There seems to be a hullaboo about a vulnerab

[R] [Rd] R 4.4.0 is released

2024-04-24 Thread Peter Dalgaard via R-announce
base/R-4/R-4.4.0.tar.gz https://cran.r-project.org/src/base/R-4/R-4.4.0.tar.xz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the fresh

Re: [R] x[0]: Can '0' be made an allowed index in R?

2024-04-23 Thread Peter Dalgaard via R-help
t; Offset <- 30 > for (i in -29 to 120) { print(df[i+Offset])} > > > 2) use absolute values if all indices are negative. > for (i in -200 to -1) {print(df[abs(i)])} > > Tim > > > > -Original Message- > From: R-help On Behalf Of Peter Dalgaard

Re: [R] x[0]: Can '0' be made an allowed index in R?

2024-04-22 Thread Peter Dalgaard via R-help
EASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38

Re: [R] missing() fails to detect missing

2024-04-18 Thread Peter Dalgaard via R-help
gt;> ______ >> 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/pos

Re: [R] Question regarding reservoir volume and water level

2024-04-09 Thread peter dalgaard
>> >> Hope this helps, >> >> Rui Barradas >> >> >> -- >> Este e-mail foi analisado pelo software antivírus AVG para verificar a >> presença de vírus. >> http://www.avg.com/ >> >> ____

Re: [R] CEoptim problems

2024-04-09 Thread peter dalgaard
ls in flow control constructions have gone through an elborate deprecation process before getting turned into errors. If the problem is how to activate a dormant maintainer and fix the issue for everyone, I don't really have a clue, but you might consider cantacting the CRAN team. Best, Peter

Re: [R] Building Packages.

2024-03-21 Thread peter dalgaard
t;> same objects >> apart from those only in the namespace, >> people would not even have access to R's true install.packages() >> but only see the RStudio fake^Hsubstitute.. >> We are still not happy with their decision. Also >> help(install.packages) goes to R

[R] [Rd] R 4.4.0 scheduled for April 24

2024-03-19 Thread Peter Dalgaard via R-announce
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Problem when trying to install packages

2024-03-18 Thread peter dalgaard
'C:/R_Libs/lubridate' >>> Warning in install.packages : >>> installation of package ‘lubridate’ had non-zero exit status >>> ERROR: dependency 'maps' is not available for package 'mapproj' >>> * removing 'C:/R_Libs/mapproj' >>> Warning in ins

[R] R 4.3.3 is released

2024-02-29 Thread Peter Dalgaard via R-announce
You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.3.3.tar.gz https://cran.r-project.org/src/base/R-4/R-4.3.3.tar.xz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Pete

Re: [R] converting MATLAB -> R | element-wise operation

2024-02-28 Thread peter dalgaard
ore, 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. > > -- > Sent from my phone. Please excuse my brevity. > > __

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-19 Thread peter dalgaard
hing --- one of the few times, I use >> RStudio to use R... in another case where RStudio's >> install.packages() behaved differently than R's. >> >> I'm pretty sure this is reason for quite a bit of confusion... > > Did they ignore your bug repo

Re: [R] Looping

2024-02-18 Thread Peter Langfelder
Try for (ind in 1:24) { data = read.csv(paste0("data", ind, ".csv")) ... } Peter On Mon, Feb 19, 2024 at 11:33 AM Steven Yen wrote: > > I need to read csv files repeatedly, named data1.csv, data2.csv,… data24.csv, > 24 altogether. That is, > > dat

[R] [Rd] R 4.3.3 scheduled for February 29

2024-02-16 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Packages sometimes don't update, but no error or warning is thrown

2024-02-14 Thread peter dalgaard
What Martin says... Also, it might help to know that the original, base-R functions are still there, as utils::install.packages() utils::update.packages() (+ most likely, a restart of RStudio to make it adapt to the packages that you installed behind its back.) - Peter D. > On 14 Feb 2

Re: [R] back tick names with predict function

2023-12-01 Thread peter dalgaard
; > > -- Bert > > __ > 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

Re: [R] anyone having trouble accesing CRAN?

2023-11-20 Thread peter dalgaard
local.only = TRUE)) to access a mirror that works. > > -- > 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.htm

Re: [R] Bug in print for data frames?

2023-11-03 Thread peter dalgaard
lt;- tibble(A = 1) > x$C <- y[1] > x > #> # A tibble: 1 × 3 > #> A B C$A > #> > #> 1 1 2 1 > > Duncan Murdoch > > __ > R-help@r-project.org mailing list -- To U

Re: [R] weights vs. offset (negative binomial regression)

2023-11-02 Thread peter dalgaard
UNSUBSCRIBE and more, see >> > https://stat.ethz.ch/mailman/listinfo/r-help >><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/p

[R] [Rd] R 4.3.2 is released

2023-10-31 Thread Peter Dalgaard via R-help
z or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD

Re: [R] How to Calculate the Mean by Multiple Groups in R

2023-10-24 Thread peter dalgaard
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. > > > > -- > Sarah Goslee (she/her) > http://www.numbe

Re: [R] Create new data frame with conditional sums

2023-10-24 Thread peter dalgaard
t; FAX 919-681-7494 >> >> >>[[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

[R] [Rd] R 4.3.2 scheduled for October 31

2023-10-13 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Odd result

2023-09-29 Thread peter dalgaard
Michael > > __ > 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 commente

Re: [R] prop.trend.test question

2023-09-28 Thread peter dalgaard
on the right track here? > > Thomas Subia > > __ > 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-g

Re: [R] Print hypothesis warning- Car package

2023-09-18 Thread peter dalgaard
Also, I would guess that the code precedes the use of backticks in non-syntactic names. Could they be deployed here? - Peter > On 17 Sep 2023, at 16:43 , John Fox wrote: > > Dear Robert, > > Anova() calls linearHypothesis(), also in the car package, to compute sums of &

Re: [R] graph in R with grouping letters from the turkey test with agricolae package

2023-09-13 Thread peter dalgaard
fessor, Mathematics & Statistics and Biology, McMaster University > Director, School of Computational Science and Engineering > (Acting) Graduate chair, Mathematics & Statistics > > E-mail is sent at my convenience; I don't expect replies outside of working > > hours. &g

Re: [R] prop.trend.test

2023-09-12 Thread peter dalgaard
ake sense as the LPM estimate of the regression slope. - Peter D. > On 8 Sep 2023, at 12:53 , Rui Barradas wrote: > > Às 10:06 de 08/09/2023, peter dalgaard escreveu: >> Yes, this was written a bit bone-headed (as I am allowed to say...) >> If you look at the code, you will s

Re: [R] prop.trend.test

2023-09-08 Thread peter dalgaard
op 4 > #> 0.9651163 0.9677419 0.9485294 0.8536585 > > smokers/patients > > #> [1] 0.9651163 0.9677419 0.9485294 0.8536585 > > plot(smokers/patients, type = "b") > > > > Hope this helps, > > Rui Barradas > > _

Re: [R] Why install.packages(repos = X) does not override the 'repos' R option?

2023-06-19 Thread peter dalgaard
ailing 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. -- Peter Dalgaard, Professor, Center for Statist

[R] [Rd] R 4.3.1 is released

2023-06-16 Thread Peter Dalgaard via R-help
z or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD

[R] [Rd] R 4.3.1 scheduled for June 16

2023-05-25 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

[R] [Rd] R 4.3.0 is released

2023-04-21 Thread Peter Dalgaard via R-help
-4/R-4.3.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorru

[R] [R-pkgs] DNAmixturesLite and KinMixLite

2023-04-12 Thread Peter Green
herese Graversen and Peter Green ___ 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.e

Re: [R] "prob" package alternative

2023-04-06 Thread peter murage
Which package in R replaced package prob? Sent from Mail for Windows [[alternative HTML version deleted]] __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see

Re: [R] Count matrix of GSE146049

2023-04-02 Thread Peter Langfelder
It's a microarray data set, so I don't think you would want to apply an RNA-seq pipeline. You'd be better off applying a normalization appropriate for this type of microarray data. HTH, Peter On Sun, Apr 2, 2023 at 11:09 PM Anas Jamshed wrote: > > I want to get the count matrix of gene

[R] [Rd] R 4.3.0 scheduled for April 21

2023-03-21 Thread peter dalgaard
Full schedule is available on developer.r-project.org (pending update from SVN). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

[R] [Rd] R 4.2.3 is released

2023-03-15 Thread peter dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = 320967884b547734d6279dedbc739dd4 MD

[R] [Rd] R 4.2.3 scheduled for March 15

2023-03-01 Thread Peter Dalgaard via R-help
Full schedule available on developer.r-project.org in a short while. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Problem of intercept?

2023-02-22 Thread peter dalgaard
t; > > > __ > 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,

Re: [R] MLE Estimation of Gamma Distribution Parameters for data with 'zeros'

2023-01-19 Thread peter dalgaard
uide.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-

[R] [R-pkgs] gRaven package - Bayes Nets: 'RHugin' Emulation with 'gRain'

2023-01-09 Thread Peter Green
without access to the commercial package 'Hugin' to use existing code written to use 'RHugin'. I am open to extending the functionality of the package in future, in response to user demand. regards, Peter Green -- Peter Green, p.j.gr...@bristol.ac.uk -- Emeritus Professor of Statistics

Re: [R] library(tseries) - spellng error in output

2022-12-15 Thread peter dalgaard
> 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. -- Pe

Re: [R] confusion about dev.prev()

2022-12-05 Thread Peter Langfelder
Ah, thanks, got it. Misread the help again... Peter On Mon, Dec 5, 2022 at 9:38 PM Ivan Krylov wrote: > > В Mon, 5 Dec 2022 21:28:16 +0800 > Peter Langfelder пишет: > > > Open two devices, plot a plot, call dev.prev() and plot again. I > > would expect the second plo

[R] confusion about dev.prev()

2022-12-05 Thread Peter Langfelder
Hi all, I'm either confused about dev.prev() or there's a bug in it. Open two devices, plot a plot, call dev.prev() and plot again. I would expect the second plot to appear in the first device, but that is not what happens; both plots appear in the second device. Is this expected behavior or a

[R] [Rd] R 4.2.2 is released

2022-10-31 Thread Peter Dalgaard via R-help
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = 320967884b547734d6279dedbc739dd4 MD

Re: [R] Subsetting a vector using an index with all missing values

2022-07-02 Thread Peter Langfelder
Ah, thanks, that makes sense. Peter On Fri, Jul 1, 2022 at 10:01 PM Bill Dunlap wrote: > > This has to do with the mode of the subscript - logical subscripts are > repeated to the length of x and integer/numeric ones are not. NA is logical, > NA_integer_ is integer, so we get >

Re: [R] Checking a function for undeclared variables

2022-04-05 Thread Peter Langfelder
Thanks! Peter On Tue, Apr 5, 2022 at 6:01 PM Jeff Newmiller wrote: > > ?codetools::findGlobals > > On April 5, 2022 5:36:54 PM PDT, Peter Langfelder > wrote: > >Hi all, > > > >I'd like to check a function for undeclared global variables using > >somethin

[R] [R-pkgs] Nmix package - Bayesian inference about univariate Gaussian mixtures with an unknown number of components

2022-04-02 Thread Peter Green
he package in response to concrete suggestions. regards, Peter Green ___ R-packages mailing list r-packa...@r-project.org https://stat.ethz.ch/mailman/listinfo/r-packages __ R-help@r-project.org ma

Re: [R] How to convert category (or range/group) into continuous ?

2022-01-17 Thread peter dalgaard
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. >> > > [[alt

Re: [R] Sum every n (4) observations by group

2021-12-19 Thread Peter Langfelder
tapply(x, ind, sum) } sums = tapply(df$Value, df$ID, sumNs, 4) Peter On Sun, Dec 19, 2021 at 10:32 AM Miluji Sb wrote: > > Dear all, > > I have a dataset (below) by ID and time sequence. I would like to sum every > four observations by ID. > > I am confused how to combi

Re: [R] Date read correctly from CSV, then reformatted incorrectly by R

2021-11-23 Thread peter dalgaard
ote: > > Thanks, Andrew. I didn't realise as.Date *only* read two formats, I > think I was tripped up by using %y instead of %Y, -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.

[R] [Rd] R 4.1.2 is released

2021-11-01 Thread Peter Dalgaard
Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = 320967884b547734d6279dedbc739dd4 MD

Re: [R] [Rd] R 4.1.2 scheduled for November 1

2021-10-03 Thread peter dalgaard
Schedule should appear on developer.r-project.org when it gets updated from SVN. > On 3 Oct 2021, at 18:40 , peter dalgaard wrote: > > (Just a quick heads-up for developers.) > > Full schedule to be made available soon. > -- Peter Dalgaard, Professor, Center for Stat

[R] [Rd] R 4.1.2 scheduled for November 1

2021-10-03 Thread peter dalgaard
(Just a quick heads-up for developers.) Full schedule to be made available soon. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] How to globally convert NaN to NA in dataframe?

2021-09-03 Thread peter dalgaard
do.call(cbind, lapply(x, is.nan)) >>>>> >>>>> data123[is.nan(data123)] <- 0 >>>>> ``` >>>>> replacing o with NA, but I got >>>>> ``` >>>>> str(df) >>>>>> logi NA >>>>&g

[R] [Rd] R 4.1.1 is released

2021-08-10 Thread Peter Dalgaard
Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = da5e7c699a83608d0f1e39c458d9fc56 MD

[R] [Rd] R 4.1.1 scheduled for August 10

2021-07-10 Thread Peter Dalgaard via R-help
Full schedule is available on developer.r-project.org. (This comes somewhat late this year, partly because we needed to squeeze in 4.0.5 before 4.1.0 could be released.) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg

Re: [R] checksums for R src file

2021-06-24 Thread peter dalgaard
). - Peter D. > On 24 Jun 2021, at 17:47 , kap4lin wrote: > > When I download the file, > https://cran.r-project.org/src/base/R-4/R-4.1.0.tar.gz (or anything > similar) is there a checksum for the file I can compare it to? > > Thanks > PK > > [[al

[R] [Rd] R 4.1.0 is released

2021-05-20 Thread Peter Dalgaard
You can get the source code from https://cran.r-project.org/src/base/R-4/R-4.1.0.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for th

[R] [Rd] R 4.1.0 scheduled for May 18

2021-04-16 Thread Peter Dalgaard via R-help
Full schedule is available on developer.r-project.org. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com

Re: [R] Random Forest: OOB performance = test set performance?

2021-04-10 Thread Peter Langfelder
, Peter On Sat, Apr 10, 2021 at 8:49 PM wrote: > > Hi ML, > > For random forest, I thought that the out-of-bag performance should be > the same (or at least very similar) to the performance calculated on a > separated test set. > > But this does not seem to be the case. &

[R] [Rd] R 4.0.5 is released

2021-03-31 Thread Peter Dalgaard
ct.org/src/base/R-4/R-4.0.5.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wis

[R] [Rd] R 4.0.5 scheduled for March 31

2021-03-22 Thread Peter Dalgaard via R-help
Full schedule is available on https://developer.r-project.org (or https://svn.r-project.org/R-dev-web/trunk/index.html for the impatient). (This is a fast-track release, to resolve an issue with Asian character sets and another issue with R CMD build, before R 4.1.0) -- Peter Dalgaard

Re: [R] about a p-value < 2.2e-16

2021-03-18 Thread Peter Langfelder
), exact=TRUE) tst$p.value [1] 2.988368e-32 I think this value is what the journal asks for. HTH, Peter On Thu, Mar 18, 2021 at 10:05 PM Spencer Graves wrote: > >I would push back on that from two perspectives: > > > 1. I would study exactly what the jo

[R] [Rd] R 4.0.4 is released

2021-02-15 Thread Peter Dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = b9c44f9f78cab3184ad9898bebc854b4 MD

[R] [Rd] R 4.0.4 scheduled for February 15

2021-01-21 Thread Peter Dalgaard via R-help
Full schedule is available on https://developer.r-project.org (or https://svn.r-project.org/R-dev-web/trunk/index.html for the impatient). -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office

Re: [R] Converting "day of year" to "year", "month" and "day"

2021-01-16 Thread peter dalgaard
hments except for PS, PDF, and some image and archive >> formats (others are automatically stripped off because they can contain >> malicious software). Files in other formats and larger ones should >> rather be put on the web and have only their URLs posted. This way a >> re

Re: [R] Does anyone have any use for this?

2021-01-01 Thread Peter Langfelder
This would certainly simplify and make more readable some of my code where I create multiple versions of the same plot calling the same function with minor variations of a few of many arguments. Thanks! Peter On Fri, Jan 1, 2021 at 12:20 PM Bert Gunter wrote: > Hi all: > > In t

Re: [R] Error pvclust package: Error in hclust(distance, method = method.hclust)

2020-12-14 Thread Peter Langfelder
retained, leading to an error. Just my guess though; understanding what pvclust does would help you diagnose the problem. Peter On Mon, Dec 14, 2020 at 2:48 PM Jovani T. de Souza wrote: > This question was also made in > > https://stackoverflow.com/questions/65290436/error-pvclust-pack

Re: [R] newdata for predict.lm() ??

2020-11-04 Thread peter dalgaard
t;- "h" > # ... same error again. > > Bottom line: how can I properly specify newdata? The documentation is opaque. > It seems the algorithm is trying to EXACTLY match the text of the RHS of the > formula, which is unlikely to result in a useful column name, unless I assign &g

[R] [Rd] R 4.0.3 is released

2020-10-10 Thread Peter Dalgaard
rer to you. Binaries for various platforms will appear in due course. For the R Core Team, Peter Dalgaard These are the checksums (md5 and SHA-256) for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = b9c44f9f78cab3184ad9898bebc854b4 MD

Re: [R] RStudio question

2020-10-08 Thread peter dalgaard
-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4

Re: [R] understanding as.list(substitute(...()))

2020-10-06 Thread peter dalgaard
s.pairlist(alist(abc$de, fg[h], , i))" > dput(e[[2]]) as.pairlist(alist(abc$de, fg[h], , i)) > mode(e[[2]]) [1] "pairlist" > mode(e[[2]][[3]]) [1] "name" I.e. the list in e[2] contains the missing indicator (an empty name). (I'm slightly puzzled why we need

[R] [Rd] R 4.0.3 scheduled for October 10

2020-10-05 Thread Peter Dalgaard via R-help
[Oops, this apparently got omitted during release scheduling] Full schedule is available on developer.r-project.org. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd

Re: [R] (no subject)

2020-10-01 Thread Peter Dalgaard
d, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Priv: pda...@gmail.com ___

[R] help to create a simulated dataset

2020-09-29 Thread Peter Wagey
Hi R User, I was trying to create a data matrix with four columns: height, locations (three locations), temperature (three levels) and slope (three classes) and used the following code, but it did not work. I basically wanted to have 20 rows for each class (I have a total of 9 classes). Can you

Re: [R] open file on R GUI results in spinning wheel and frozen R - Mac OS

2020-09-23 Thread Peter Dalgaard
___ > 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] How can we get a predicted value that are used to plot the figure using a plot_model function of sjPlot?

2020-09-19 Thread Peter Wagey
pred", terms = c("c12hour", "barthtot [30,50,70]", "c161sex")) How can we see the predicted values that are used to plot the figure? If we can see the data (predicted values), we could use other functions to create another type of figures. Thank you very much for your sugges

Re: [R] Assigning cores

2020-09-03 Thread Peter Langfelder
(swapping to and from disk). I would run some smaller experimental runs that take just a minute or two to finish with say 4, 8 and 12 workers and see how fast these go - you may find no or very little speed up past 8 or perhaps even 4-6 workers. HTH, Peter On Thu, Sep 3, 2020 at 10:45 AM Leslie

Re: [R] Odd Results when generating predictions with nnet function

2020-09-02 Thread peter dalgaard
wrote: > > Dear Dr. Martin and Dr. Peter, > > Hope you are doing well. Thank you for your kind feedback. I also tried > fitting the nnet using y ~ x, but the model kept on generating odd > predictions. If I understand correctly, from what Dr. Martin said, it would > be

Re: [R] Odd Results when generating predictions with nnet function

2020-09-02 Thread peter dalgaard
42, 18443, 18444, 18445, 18446, 18447, 18448, 18449, 18450, > 18451, 18452, 18453, 18454, 18455, 18456, 18457, 18458, 18459, > 18460, 18461, 18462, 18463, 18464, 18465, 18466, 18467, 18468, > 18469, 18470, 18471, 18472, 18473, 18474, 18475, 18476, 18477, > 18478, 18

Re: [R] Can I use "mcnemar.test" for 3*3 tables (or is there a bug in the command?)

2020-08-31 Thread peter dalgaard
tion is: >> was there marginal homogenity? if not, then that is an indicator that the >> general response to the experimental settings was different for the kids. > >> 1) can I use "mcnemar.test" for 3*3 (or more) tables ? > As Peter Dalgaard and j

Re: [R] How to obtain individual log-likelihood value from glm?

2020-08-29 Thread peter dalgaard
t; weights <- c(rep(1, 50), rep(2, 50)) > fit <- glm(y~x, data, family=binomial(), weights/10) > res.dev <- residuals(fit, type="deviance") > res2 <- -0.5*res.dev^2 > cat("loglikelihood value", logLik(fit), sum(res2), "\n") > >

Re: [R] How to obtain individual log-likelihood value from glm?

2020-08-29 Thread peter dalgaard
> On 25 Aug 2020, at 18:40 , peter dalgaard wrote: > > If you don't worry too much about an additive constant, then half the > negative squared deviance residuals should do. (Not quite sure how weights > factor in. Looks like they are accounted for.) > > -pd > >

Re: [R] Importing data using Foreign

2020-08-26 Thread peter dalgaard
oint! :-) > > > On Wed, Aug 26, 2020 at 5:55 PM peter dalgaard wrote: > Offhand, I suspect that the NAs are in the 8th column. > > > On 26 Aug 2020, at 10:57 , Elham Daadmehr wrote: > > > > Hi all, > > > > I have a simple problem. I get stuck i

Re: [R] Importing data using Foreign

2020-08-26 Thread peter dalgaard
e > 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School S

Re: [R] Matching backslash in a table's column using R language

2020-08-25 Thread Peter Bishop
hat doubled backslash to recognize that _it_ should > not give special treatment to the \ there, and should look for it in the > input data. > >> On August 25, 2020 12:16:35 PM PDT, Peter Bishop >> wrote: >> The feed is coming from a SQL table and this is using the embe

Re: [R] Matching backslash in a table's column using R language

2020-08-25 Thread Peter Bishop
x3f\x5c\x5c\x60]" This seems to be escaping the backslash in the R script rather than in the data - which confuses me. From: Bert Gunter Sent: Wednesday, 26 August 2020 4:26 AM To: Peter Bishop Cc: r-help@r-project.org Subject: Re: [R] Matching backslash in a ta

Re: [R] How to obtain individual log-likelihood value from glm?

2020-08-25 Thread peter dalgaard
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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen

[R] Matching backslash in a table's column using R language

2020-08-25 Thread Peter Bishop
In SQL, I'm using R as a way to filter data based on: - 20 characters in the range to - excluding , , , , , Given a SQL column containing the data: code A\BCDEFG and the T-SQL script: EXEC [sys].[sp_execute_external_script] @language=N'R',

Re: [R] Best settings for RStudio video recording?

2020-08-14 Thread peter dalgaard
de http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cbs.dk Pri

Re: [R] Best settings for RStudio video recording?

2020-08-14 Thread peter dalgaard
__ >>>> 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-guid

Re: [R] optim with upper and lower bounds

2020-08-11 Thread peter dalgaard
From those who have been given much, much will be expected" > "the arc of the moral universe is long, but it bends toward justice" -MLK Jr. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listi

  1   2   3   4   5   6   7   8   9   10   >