[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
gtable_0.3.3 survival_3.5-8 > > [33] ggplot2_3.4.2 > R> > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posti

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

[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
fact that RStudio > hides R's own install.packages() from the user and uses its > own, undocumented one ... this has been the case for quite a few years. > I found out during teaching --- one of the few times, I use > RStudio to use R... in another case where RStudio's > install.packages() be

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
gt; scales_1.2.1 fansi_1.0.4 grid_4.3.1 [15] cellranger_1.1.0 abind_1.4-5 >> munsell_0.5.0 tibble_3.2.1 tzdb_0.4.0 lifecycle_1.0.3 compiler_4.3.1 >> [22] pkgconfig_2.0.3 rstudioapi_0.15.0 farver_2.1.1 R6_2.5.1 >> tidyselect_1.2.0 utf8_1.2.3 parallel_4.3.1 [29] vroom_1.6.3 pillar

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] [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-

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

[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] 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] 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
nted, 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] [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

[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

[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] 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 ___

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.

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

2020-09-02 Thread peter dalgaard
> > > > El mié., 2 sept. 2020 a las 2:37, Martin Maechler > () escribió: > >>>>> peter dalgaard > >>>>> on Wed, 2 Sep 2020 08:41:09 +0200 writes: > > > Generically, nnet(a$y ~ a$x, a ...) should be nnet(y ~ x, >

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] 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

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

Re: [R] A Question about MLE in R

2020-07-22 Thread peter dalgaard
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

Re: [R] A WSL question with allocation

2020-07-21 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. --

Re: [R] How to use mle2 function?

2020-07-01 Thread peter dalgaard
t;>> pred = a/(1+a*h*n) >>>>> # calc NLL >>>>> -sum(dbinom(k, prob = pred, size = n, log = TRUE)) >>>>> } >>>>> ``` >>>>> then I get the same error: >>>>> ``` >>>>>> O = mle2

Re: [R] how to extract specific subscript of a matrix

2020-06-27 Thread peter dalgaard
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. -- Peter

[R] R 4.0.2 is released

2020-06-22 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) = b9c44f9f78cab3184ad9898bebc854b4 MD

Re: [R] Error in "plot(aov.object)" after upgradation to R-4.0.0 and R-4.0.1 for given R-Script-Example

2020-06-21 Thread peter dalgaard
ial Science (L) > Indira Gandhi Krishi Vishwavidyalaya, Raipur-492 012, > Chhattisgarh, India > Mobile: +918770625795 > Email: akhileshsingh.i...@gmail.com > > [[alternative HTML version deleted]] > > _

[R] [Rd] R 4.0.2 scheduled for June 22

2020-06-09 Thread Peter Dalgaard via R-help
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 __ r

Re: [R] R 4.0.1 crashes with R commander

2020-06-08 Thread Peter Dalgaard
ing 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 Statistics, Copenh

[R] R 4.0.1 is released

2020-06-06 Thread Peter Dalgaard via R-help
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] How to create a warning inside the factorial function for decimal numbers

2020-06-01 Thread peter dalgaard
d 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, Copenha

[R] [Rd] R 4.0.1 scheduled for June 6

2020-05-24 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] [External Email] Re: [External] Re: access for free more than 500 essential Springer Nature textbooks

2020-05-23 Thread peter dalgaard
LEASE do read the posting guide >>> http://www.R-project.org/posting-guide.html >>> and provide commented, minimal, self-contained, reproducible code. >>> >> >> [[alternative HTML version deleted]] >> >> _

Re: [R] Fitting Richards' curve

2020-05-13 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. -- Peter Dalgaard, Pr

Re: [R] My dream ...

2020-05-13 Thread peter dalgaard
rovide 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

Re: [R] Possible bug in optimize (related to naming the arguments)

2020-05-07 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, rep

Re: [R] Problem with MASS::fitdistr().

2020-04-26 Thread peter dalgaard
to fitdistr(); doesn't seem to help. >>> >>> R.T. >>> >>> -- >>> Honorary Research Fellow >>> Department of Statistics >>> University of Auckland >>> Phone: +64-9-373-7599 ext. 88276 >>> __

[R] R 4.0.0 is released

2020-04-24 Thread Peter Dalgaard via R-help
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] A stopifnot() nastiness, even if not a bug

2020-04-13 Thread peter dalgaard
R. > > Martin > > __ > 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.

Re: [R] Add Gauss normal curve ?

2020-04-11 Thread peter dalgaard
es),nc,pch=16,type="o",col="blue",ylim=c(1,1400), > xlim=c(min(as.Date(mydates)),max(as.Date(mydates > > x <- seq(min(mydates), max(mydates), 0.1) > > curve(dnorm(x, mean(nc), sd(nc)), add=TRUE, col="red", lwd=2) >

Re: [R] Changing mu in svyttest for one sample test

2020-03-26 Thread peter dalgaard
> Mavra > > > > [[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-

Re: [R] [FORGED] Grouping Question

2020-03-22 Thread peter dalgaard
w >> Department of Statistics >> University of Auckland >> Phone: +64-9-373-7599 ext. 88276 >> >> __ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> http

Re: [R] Code seems OK (no warnings, no error messages) but no results

2020-03-18 Thread peter dalgaard
<-boot(data=data, statistic=MSE_fastMM, R=100) > boot.ci(bootResults_MM, type = boot.ci.type) > } > ### > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/

Re: [R] fit for truncated normal distribution

2020-03-14 Thread peter dalgaard
/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. >> > > [[alternative HTML version deleted]] > > __

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

2020-03-12 Thread Peter Dalgaard via R-help
and I can't get to the machine. -- 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-de...@r

Re: [R] Problem launching Rcmdr

2020-03-11 Thread Peter Dalgaard
gt; Hopefully I haven't left out any important information. Thank you >> for any >> > suggestions. >> > >> > [[alternative HTML version deleted]] >> > >> > __ >> &

Re: [R] I am struggling with contrasts

2020-03-10 Thread peter dalgaard
/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 Pl

Re: [R] how to archive old shiny applications

2020-03-05 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. -- Peter Da

  1   2   3   4   5   6   7   8   9   10   >