Re: [R] using pmax in presence of NAs

2016-11-16 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, P

Re: [R] Helmert contrasts and weighted means

2016-11-10 Thread peter dalgaard
erently, you would have to modify the entire design matrix if you removed a few rows. -- 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

Re: [R] Alternative to apply in base R

2016-11-08 Thread peter dalgaard
uide >> 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/listinf

Re: [R] problem installing R 2.5

2016-11-08 Thread peter dalgaard
lman/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 Plads 3, 2000 Frederiksberg, D

Re: [R] Sorting of character vectors

2016-11-08 Thread peter dalgaard
le("LC_COLLATE", "C"). That should work as long as you stay in good ol' ASCII. (2) Figure out (Don't look at me!) how to diddle the ICU settings for your system, icuSetCollate() is claimed to be your friend. -pd > Thanks for your help > > Pascal > >

Re: [R] multiplying a matrix by a vector

2016-11-04 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. &g

Re: [R] Updated package: survival_2.40-1

2016-11-02 Thread peter dalgaard
that ``we have found a bug in your code: > it gives a different answer than SAS''. (This is an actual quote.) Fortune nomination. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Em

[R] R 3.3.2 is released

2016-10-31 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 md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = eb97a5cd38acb1cfc6408988bffef765 MD

Re: [R] cdf in R give probability of random variable

2016-10-21 Thread peter dalgaard
> On 21 Oct 2016, at 20:23 , peter dalgaard <pda...@gmail.com> wrote: > > In both cases it works out nicer if you do > > names(px) <- x > barplot(px) > Um, unless of course you want the cdf as a step function, in which case check the help page for plot f

Re: [R] cdf in R give probability of random variable

2016-10-21 Thread peter dalgaard
ed]] Notice that plain text posting is strongly preferred in here. HTML messes up code badly sometimes. -- 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.

Re: [R] findInterval() surprising behavior

2016-10-20 Thread Peter Dalgaard
It's a bug (left.open=FALSE code gets executed in some cases). Hoping to have a fix tested and in place before 3.3.2. -pd > On 17 Oct 2016, at 21:48 , Rui Barradas wrote: > > Hello, > > Same on Windows 7. > > > findInterval(x=c(6, 1, 1, 1), vec=c(0, 1, 3, 5, 10),

Re: [R] nls.lm

2016-10-19 Thread peter dalgaard
f you just want the minimum or if you need to see the cov. matrix in order to see which parameters are unidentifiable. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: pd@cb

Re: [R] nls.lm

2016-10-19 Thread Peter Dalgaard
This would seem to apply to the add-on package minpack.lm. That package has a maintainer... Offhand, I would expect that this is a sanity check that, broadly speaking, prevents you from trying to solve a system of equations with more unknowns than equations. This is not a sufficient condition:

Re: [R] sort()ing strings

2016-10-13 Thread peter dalgaard
dardization. Names don't necessarily mean the same thing cross-platform. -- 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

Re: [R] (no subject)

2016-10-13 Thread peter dalgaard
8 tools_3.2.5 Rcpp_0.12.7 > nlme_3.1-128grid_3.2.5 knitr_1.14 > [8] tensorA_0.36lattice_0.20-34 > > Can anyone explain what's going on? > > Bob > > -- > Bob O'Hara > > Biodiversity and Climate Research Centre > Senckenberganlage 25 >

Re: [R] Recoding lists of categories of a variable

2016-10-11 Thread peter dalgaard
** > This email and any attachments are confidential. Any use...{{dropped:8}} > > __ > 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 guid

Re: [R] Finding starting values for the parameters using nls() or nls2()

2016-10-09 Thread peter dalgaard
s://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. >> >> >> >> -- >> Andrew Robinson >> Deputy Di

Re: [R] how to work ttkspinbox ? win BUG ??

2016-10-09 Thread peter dalgaard
). I define tkspinbox() in this manner in the Rcmdr package. > > Best, > John > >> -Original Message- >> From: peter dalgaard [mailto:pda...@gmail.com] >> Sent: October 9, 2016 7:14 AM >> To: Fox, John <j...@mcmaster.ca> >> Cc: Clebe

Re: [R] how to work ttkspinbox ? win BUG ??

2016-10-09 Thread peter dalgaard
displays a spinbox in an X-window: >>> >>> t <- tktoplevel() >>> s = ttkspinbox(t, from = 1.0, to = 100.0, textvariable='spinval') >>> tkpack(s) >>> >>> David Winsemius >>> Alameda, CA, USA >>> >>> &g

Re: [R] prcomp(): How do I multiply two matrices

2016-10-07 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, self-conta

[R] R-3.3.2 on October 31

2016-10-05 Thread peter dalgaard
Just a quick heads-up, mostly for those who want to keep their packages up to date with respect to updates of R: We intend to have a patch release on October 31. Nickname and detailed schedule will be made available on developer.r-project.org in due course. For the R Core Team Peter Dalgaard

[R] R-3.3.2 on October 31

2016-10-05 Thread Peter Dalgaard
Just a quick heads-up, mostly for those who want to keep their packages up to date with respect to updates of R: We intend to have a patch release on October 31. Nickname and detailed schedule will be made available on developer.r-project.org in due course. For the R Core Team Peter Dalgaard

Re: [R] What does lm() output coefficient mean when it's been given a categorical predictor of string values?

2016-10-04 Thread peter dalgaard
interpreted as 1 and 'poika' as 0? Short answer: Yes. Long answer: Yes, if treatment contrast parametrization is being used. See help(contrasts) for a lead-in to an even longer answer. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederik

Re: [R] Multivariable Wald to test equality of multinomial coefficients

2016-10-03 Thread peter dalgaard
[,1] [,2] [,3] [,4] [,5] [,6] [1,]100 -100 [2,]0100 -10 [3,]00100 -1 > A %*% beta [,1] [1,] 50.2709610 [2,] 22.5015565 [3,] -0.3689079 > t(A %*% beta) %*% solve(A %*% vcov(mod) %*% t(A), A %*% beta) [,1] [1,] 3.592326

Re: [R] Bootstrapping in R

2016-10-02 Thread peter dalgaard
s in coef(lm(df$y~df$x, data=d[f])). -- 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] using read.csv2()

2016-09-29 Thread Peter Dalgaard
> On 29 Sep 2016, at 11:40 , Duncan Murdoch wrote: > > > It's a "factor". read.csv2() defaults to a decimal separator of "," rather > than ".", so the last column doesn't look like numbers, and they're being > read as character strings, and then automatically

Re: [R] Memory not release when an environment is created

2016-09-22 Thread peter dalgaard
>>> [[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:/

Re: [R] stfrtime function not returning proper results through sqldf package in R

2016-09-16 Thread peter dalgaard
)) > cbind(df, sqldf("select strftime( '%Y-%m-%d', date) from df")) date strftime( '%Y-%m-%d', date) 10 -471-11-24 2 1000 -471-08-20 3 2000 -470-05-16 so the Epoch is nothing sensible and negative years are more than a thousand

Re: [R] stfrtime function not returning proper results through sqldf package in R

2016-09-16 Thread peter dalgaard
ransfer of the email. > > In case that this e-mail forms part of business dealings: > - the sender reserves the right to end negotiations about entering into a > contract in any time, for any reason, and without stating any reasoning. > - if the e-mail contains an offer, the recip

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread peter dalgaard
anks to all who supplied > the answer and all who supplied additional useful information. Usually happens because you think it is p for print, so the other one must be f. (It's really _p_arse and _f_ormat.) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solb

Re: [R] Help with strftime error "character string is not in a standard unambiguous format"

2016-09-12 Thread peter dalgaard
> On 12 Sep 2016, at 07:57 , Chris Evans <chrish...@psyctc.org> wrote: > >> strftime("Thu, 25 Aug 2016 6:34 PM",format="%a, %d %b %Y %I:%M %p") strptime, not strftime... -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business Schoo

Re: [R] understanding with

2016-09-10 Thread peter dalgaard
le expression. A little more than that, witness the difference between these two: > plot(airquality$Ozone) > with(airquality, plot(Ozone)) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Offic

Re: [R] save R object into a remote directory

2016-09-06 Thread peter dalgaard
t; Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D):+49 - (0)3 21 21 25 22 44 > > email: rai...@krugs.de > > Skype: RMkrug > &

Re: [R] readBin documentation error

2016-09-03 Thread peter dalgaard
ossible character strings have a corresponding function. It is not clear why we allow both "int" and "integer" here, but there is no reason to expect int() to exist. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business Sc

Re: [R] Need advice on linear programming in R

2016-09-01 Thread peter dalgaard
t.org/web/views/Optimization.html#MathematicalProgrammingSolvers ? -- 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] GLM output problem

2016-09-01 Thread peter dalgaard
ept)x I(x^2) -0.44608 0.26767 -0.01458 -- 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] Estimated Effects Not Balanced

2016-08-24 Thread peter dalgaard
<-rnorm(12)* > *mod<-aov(y~A+B)* As an aside, notice that this is one case where posting in HTML goes against your own interests (let alone the posting guide). The above cannot be cut+pasted, so fewer people will be willing to try it. -- Peter Dalgaard, Professor, Center for Statistics, Co

Re: [R] I had 1 problem with r

2016-08-22 Thread peter dalgaard
I think this is error. > Please give me answer, sir. > > [[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 d

Re: [R] need some help with date

2016-08-14 Thread peter dalgaard
t;MD", "NY", >"VA", "NY", "VT", "MD", "VT", "MD", "", "NY", "MD", "MD", >"NY", "VT", "VT", "NY", "OH", "CT", &

Re: [R] Help with non standard evaluation and require function

2016-08-14 Thread peter dalgaard
;- y + substitute (x + y) + } > f(z) x + 3.14159265358979 It is usually a better idea to handle these issues with bquote(), though. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg

Re: [R] Freq in dataframe

2016-08-05 Thread peter dalgaard
84643 > E-mail: m.trip...@aifa.gov.it > > __ > 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-gu

Re: [R] Odds ratios in logistic regression models with interaction

2016-08-04 Thread peter dalgaard
d(coef(fit3.16), d) > se.ln.or <- sqrt(t(d) %*% vcov(fit3.16) %*% d) > exp(est.ln.or) > # [1,] 3.899427 > exp(est.ln.or - 1.96 * se.ln.or) > # [1,] 1.712885 > exp(est.ln.or + 1.96 * se.ln.or) > # [1,] 8.877148 > > -Original Message- > From: peter dalgaard [mai

Re: [R] Odds ratios in logistic regression models with interaction

2016-08-04 Thread peter dalgaard
(0.29, 3.79) > # 20 2.01 (0.91, 4.44) > # 25 3.90 (1.71, 8.88) > # 30 7.55 (1.95, 29.19) > > > > > [[alternative HTML version deleted]] > > ______ > R-help@r-project.org mailing list -- To UNSUBSCRIBE a

Re: [R] what happened to inside-r? [possibly OT]

2016-08-01 Thread peter dalgaard
mal, 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.o

Re: [R] Please advice me about nls.lm

2016-07-28 Thread peter dalgaard
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, C

Re: [R] removing all non-numeric characters from a string, but not "."

2016-07-26 Thread peter dalgaard
3.04" "12.5" -pd > > Thanks a lot! > > -- > Dimitri Liakhovitski > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read t

Re: [R] lm() silently drops NAs

2016-07-26 Thread peter dalgaard
ponse, Martin. > > Hadley > > -- > http://hadley.nz > > __ > 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 >

Re: [R] newbee Caret load question

2016-07-17 Thread peter dalgaard
read the posting guide 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 > h

Re: [R] Reference for aov()

2016-07-14 Thread peter dalgaard
ect.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, Professor, Center for Statis

Re: [R] 'ref' must be an existing level

2016-07-09 Thread peter dalgaard
ir respective freq. > Diploma general honors > 50 45 105 > > On Sat, Jul 9, 2016 at 4:07 PM, peter dalgaard <pda...@gmail.com> wrote: > > What does table(m11$prog) tell you? > -pd > > > On 09 Jul 2016, at 12:29 , Shivi

Re: [R] 'ref' must be an existing level

2016-07-09 Thread peter dalgaard
lass of the var and is > a factor variable. > > [[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-projec

Re: [R] tclArray() --- "active"?!

2016-07-06 Thread peter dalgaard
nd 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, Cente

Re: [R] BCa Bootstrapped regression coefficients from lmrob function not working

2016-07-06 Thread peter dalgaard
_ > De : Bert Gunter <bgunter.4...@gmail.com> > À : varin sacha <varinsa...@yahoo.fr> > Cc : peter dalgaard <pda...@gmail.com>; R-help Mailing List > <r-help@r-project.org> > Envoyé le : Mercredi 6 juillet 2016 1h19 > Objet : Re: [R] BCa Bootstrappe

Re: [R] BCa Bootstrapped regression coefficients from lmrob function not working

2016-07-03 Thread peter dalgaard
> boot.ci(results, type= "bca",index=2) > > > Any help would be highly appreciated, > S > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help

Re: [R] strange behavior of lchoose in combinatorics problem

2016-06-26 Thread peter dalgaard
> On 25 Jun 2016, at 16:13 , Gonçalo Ferraz <gferra...@gmail.com> wrote: > > PROBLEM: the sum of the probabilities in lpvec should be <=1, but it is not. > The sum is something on the order of 1.48e-13. Um, in which sense is 1.48e-13 not <=1 ??? -- Peter Dal

Re: [R] [FORGED] Re: Generate list if sequence form two vector element

2016-06-22 Thread peter dalgaard
gt;> >>>> b<-c(10,7,20,2) >>>> >>>> >>>> Expected outcome : >>>> >>>> d<-list(1:10,3:7,6:20,2:9) > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE an

[R] R 3.3.1 is released

2016-06-21 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 md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = eb97a5cd38acb1cfc6408988bffef765 MD5 (COPYING) = eb723b61539feef013de476e68

Re: [R] extracting coefficients from ar() output

2016-06-16 Thread peter dalgaard
d the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. >> > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org

Re: [R] Find mean of values in three-dimensional array

2016-06-15 Thread peter dalgaard
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, Professo

Re: [R] Warning message in openxlsx

2016-06-15 Thread peter dalgaard
tname, >>cols = 1:ncol(dataset), >>widths = "auto") >> >> and t_write_xlsx is >> >> saveWorkbook(workbook, >>file = file.path(path, filename), >>overwrite = overwrite) >> >> I am woundring what "partial match of 'font'

Re: [R] Dashed/dotted ecdf plots using lots of points

2016-06-13 Thread peter dalgaard
rnative 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 &

Re: [R] detecting if a variable has changed

2016-06-06 Thread peter dalgaard
f (! identical(l, attr(l, 'sorted'))) { >>>>>>>l = sort(unlist(l)) >>>>>>>attr(l, 'sorted') = weakref(l) >>>>>>> } >>>>>>> # Do operation that requires sorted list. >>>>>>> ... >>

Re: [R] Error from Rcmdr when trying to make a density plot

2016-06-04 Thread peter dalgaard
tils grDevices base Looks like you somehow managed to detach (or not attach) the stats package. Don't... -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Offi

Re: [R] Application of "merge" and "within"

2016-06-01 Thread peter dalgaard
1 D1 1 13 13 0 >> 2 1 1 G1 D1 2 16 13 3 >> 3 1 1 G1 D1 3 19 13 6 >> 4 1 1 G1 D1 4 12 13 -1 >> 5 1 1 G1 D1 5 19 13 6 > > Just use > > s <- within(s, db <- b - bl) > > Duncan Murdoch > > __

[R] Release of R 3.3.1 scheduled for June 21

2016-05-29 Thread Peter Dalgaard
We intend to have a patch release on June 21, nickname will be "Bug in Your Hair". The detailed schedule will be made available via developer.r-project.org as usual. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksber

Re: [R] WARNING: Method convertPointFromBase

2016-05-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. -- Peter

Re: [R] meaning of lm( y~., data=mydat ), is it a language feature, is it documented, is it supported?

2016-05-23 Thread peter dalgaard
ty Statement: >> This email message, including any attachments, is for ...{{dropped:8}} > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read th

Re: [R] Element-by-element operation (adding)

2016-05-23 Thread peter dalgaard
ok Ma, no transposes v + rep(b, each=nrow(v)) (_always_ doublecheck the logic when you apply these and similar techniques! I have seen my share of student code where recycling had been applied along the wrong dimension of a matrix...) -- Peter Dalgaard, Professor, Center for Statistics, Co

Re: [R] Matrix multiplications

2016-05-21 Thread peter dalgaard
20-3980 >> e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/ >> >> "Old age and treachery will overcome youth and skill." >> "From those who have been given much, much will be expected" >> "the arc of the mor

Re: [R] Matrix multiplications

2016-05-21 Thread peter dalgaard
iling 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, Co

Re: [R] Placement of words in a word cloud as per its occurance.

2016-05-18 Thread peter dalgaard
. As it stands, people are left wondering which function it might be that has an argument called random.order. - Peter Dalgaard On 17 May 2016, at 13:09 , shaila shailaja <shaila...@rediffmail.com> wrote: > Dear R help subscribers, > > > > > I am working on a wo

Re: [R] 2x2x2 rm ANOVA, varying results

2016-05-15 Thread peter dalgaard
native 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 pr

Re: [R] with vs. attach

2016-05-09 Thread peter dalgaard
"expr_text" function (or other >>>> functions in "lazyevel") to produce a better solution. >>>> >>>> >>>> Thanks again to David, Peter and Hadley for their replies. >>>> >>>> >>>> Spencer Grave

Re: [R] with vs. attach

2016-05-06 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. > > David Winsemius > Alameda, CA, U

[R] R 3.3.0 is released

2016-05-03 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 md5sums for the freshly created files, in case you wish to check that they are uncorrupted: MD5 (AUTHORS) = eb97a5cd38acb1cfc6408988bffef765 MD

Re: [R] how to use AND in grepl

2016-05-02 Thread peter dalgaard
how to apply AND in grepl? >>> >>> Thanks >>> Elahe >>> >>> __ >>> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>> https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] Mailing List

2016-04-21 Thread peter dalgaard
roject.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 Priv: pda...@gmail.com

Re: [R] as.Date

2016-04-18 Thread peter dalgaard
my plot. Please I want this format to include hour. > > Many thanks for your help. I am just a newbe. I am not sure if this > forum is the right one. After registration, I tried to post to Nabble > forum where I registered but could not succeed. > > If there is a mistake, please help

Re: [R] Trying to understand cut

2016-04-17 Thread peter dalgaard
-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > Confidentiality Statement: > This email message, including any attachments, is for the sole use of the > intended recipient(s) and may contain confidential and privileged > inform

Re: [R] Equivalent in R of the Contains operator in SAS

2016-04-16 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] Bug in by() function which works for some FUN argument and does not work for others

2016-04-15 Thread peter dalgaard
0 >>> >>> Max. :3.570 Max. :19.90 Max. :1. Max. :1 Max. >>> :5.000 >>> >>> carb >>> Min. :1.000 >>> 1st Qu.:1.000 >>> Median :2.000 >>> Mean :2.923 >>> 3rd Qu.:4.000 >>> Max. :8.000 >>>> >>> &g

Re: [R] Error messages when start first time R: "You're using a non-UTF8 locale, therefore only ASCII characters will work."

2016-04-14 Thread peter dalgaard
rg 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, Profe

[R] R 3.2.5 is released

2016-04-14 Thread Peter Dalgaard
it. You can get the source code from http://cran.r-project.org/src/base/R-3/R-3.2.5.tar.gz or wait for it to be mirrored at a CRAN site nearer to you. For the R Core Team, Peter Dalgaard New md5 sums are MD5 (AUTHORS) = eb97a5cd38acb1cfc6408988bffef765 MD5 (COPYING

Re: [R] R 3.2.4-revised is released

2016-04-13 Thread Peter Dalgaard
ead what's new in the latest version. > > Should that not be updated? Anyone who has not seen that post won't > know to look further. > > > On Wed, 16-Mar-2016 at 08:39PM +, Peter Dalgaard wrote: > > |> The 3.2.4 release had two annoyances which we would rath

Re: [R] [FORGED] Generating random data with non-linear correlation between two variables

2016-04-09 Thread peter dalgaard
gt; >> Rolf Turner >> >> -- >> Technical Editor ANZJS >> Department of Statistics >> University of Auckland >> Phone: +64-9-373-7599 ext. 88276 >> ______ >> R-help@r-project.org mailing list -- To UNSUBS

Re: [R] Rcmdr will not load

2016-04-08 Thread peter dalgaard
TML 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 commen

Re: [R] R.squared in summary.lm with weights

2016-04-08 Thread peter dalgaard
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,

Re: [R] Fligner-Killeen test on binary data

2016-04-04 Thread peter dalgaard
ng 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, Copen

Re: [R] p values from GLM

2016-04-03 Thread peter dalgaard
t;> 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/listin

[R] Extending the beta period for R 3.3.0 till April 25, Final release on May 3

2016-04-02 Thread Peter Dalgaard
discovered in the beta period, we might have to back out and be stuck with the old tools for another year. Web site updates will happen shortly. For the Core Team Peter Dalgaard -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000

Re: [R] Typographical error in the documentation of function strwidth?

2016-03-19 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. -- Pete

Re: [R] About calculation of the gravity model in R and STATA software

2016-03-19 Thread peter dalgaard
A is using some sort of sandwich estimator whereas R is just upscaling the results for a Poisson regression. You might want to check out package "sandwich". -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denma

Re: [R] What "method" does sort() use?

2016-03-19 Thread peter dalgaard
cannot even be sure that locales of the same name on two different platforms sort strings in the same order. -pd On 18 Mar 2016, at 10:13 , peter dalgaard <pda...@gmail.com> wrote: > > On 18 Mar 2016, at 10:02 , Patrick Connolly <p_conno...@slingshot.co.nz> > wrote: >

[R] R 3.2.4-revised is released

2016-03-19 Thread Peter Dalgaard
CRAN site nearer to you. Maintainers of binary versions are requested to rebuild their binaries using the revised sources. For the R Core Team, Peter Dalgaard New md5 sums are MD5 (NEWS) = b0b43ac87a5b5858098da065966551af MD5 (R-3/R-3.2.4-revised.tar.gz) = 552b0c8088bab08ca4188797b919a58f Th

Re: [R] Typographical error in the documentation of function strwidth?

2016-03-19 Thread peter dalgaard
On 17 Mar 2016, at 14:27 , ALBERTO VIEIRA FERREIRA MONTEIRO <albm...@centroin.com.br> wrote: > Peter Dalgaard wrote: > >> I don't think so. I'll give you that it should either be the (number of >> lines - 1)*spacing >> or (number of linefeeds)*spacing, but it

Re: [R] What "method" does sort() use?

2016-03-18 Thread peter dalgaard
to make the worst case rarer.) This is not a stable sort, and ties may be reordered. Factors with less than 100,000 levels are sorted by radix sorting when method is not supplied: see sort.list. -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbj

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
> On 11 Mar 2016, at 23:48 , David Winsemius <dwinsem...@comcast.net> wrote: > >> >> On Mar 11, 2016, at 2:07 PM, peter dalgaard <pda...@gmail.com> wrote: >> >> >>> On 11 Mar 2016, at 17:56 , David Winsemius <dwinsem...@comcast.net> w

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
> On 11 Mar 2016, at 17:56 , David Winsemius <dwinsem...@comcast.net> wrote: > >> >> On Mar 11, 2016, at 12:48 AM, peter dalgaard <pda...@gmail.com> wrote: >> >> >>> On 11 Mar 2016, at 08:25 , David Winsemius <dwinsem...@comcast.net>

Re: [R] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
hey > didn't come through. > > -- 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] Regression with factor having1 level

2016-03-11 Thread peter dalgaard
> On 11 Mar 2016, at 02:03 , Robert McGehee <rmcge...@gmail.com> wrote: > >> df <- data.frame(y=c(0,2,4,6,8), x1=c(1,1,2,2,NA), > x2=factor(c("A","A","A","A","B"))) >> resid(lm(y~x1+x2, data=df, na.action=na.exc

<    1   2   3   4   5   6   7   8   9   10   >