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

Re: [R] Regression with factor having1 level

2016-03-11 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, Professor

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-10 Thread peter dalgaard
- > Dr John Hillier > Senior Lecturer - Physical Geography > Loughborough University > 01509 223727 > > > From: peter dalgaard <pda...@gmail.com> > Sent: 10 March 2016 17:49 > To: John Hillier > Cc: r-help@r-project.org &

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-10 Thread peter dalgaard
s) : > the value of argument 'upper' is too low (requires 'max(y) < upper') > > - > Dr John Hillier > Senior Lecturer - Physical Geography > Loughborough University > 01509 223727 > > > From: peter dalgaard &l

[R] R 3.2.4 is released

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

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-10 Thread peter dalgaard
hysical Geography > Loughborough University > 01509 223727 > > > From: peter dalgaard <pda...@gmail.com> > Sent: 09 March 2016 19:58 > To: John Hillier > Cc: r-help@r-project.org > Subject: Re: [R] truncpareto() - doesn't like

Re: [R] truncpareto() - doesn't like my data and odd error message

2016-03-09 Thread peter dalgaard
ave also played with the upper limit. pdataH has 2117 > observations in it. > > > Is this a data format thing? i.e. of pdataH (a tried a few things, but to no > avail) > Umm, it doesn't seem to have a column called "y"? -- Peter Dalgaard, Professor, Cent

Re: [R] Wooden Christmas Tree freezing when reading in files in El Capitan OS X

2016-03-08 Thread peter dalgaard
ct so that I don't run into this program again... But for the > future, I need to figure out why it keeps freezing. Thank you! > > > On Saturday, March 5, 2016, peter dalgaard <pda...@gmail.com> wrote: > Explain _exactly_ what you mean by "try to read in files using read.csv" and

Re: [R] Wooden Christmas Tree freezing when reading in files in El Capitan OS X

2016-03-05 Thread peter dalgaard
gt; 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, Denma

Re: [R] removing factor values in the main data frame

2016-03-01 Thread peter dalgaard
ttps://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-help@r-project.org mailing list --

Re: [R] Using Fortran with MPI, RInside, and calling R functions

2016-02-27 Thread peter dalgaard
#5 0x7FC5979671E8 >>> #6 0x7FC5979677A1 >>> #7 0x402A55 in buzzyC >>> #8 0x402891 in MAIN__ at buzzy.f90:? >>> #0 0x7F2482294E48 >>> #1 0x7F2482293FD0 >>> #2 0x7F2481CCD2EF >>> #3 0x7F2481D2369A >>> #4 0x7F2482E86

Re: [R] Calculate negative log of the E-Values in R

2016-02-26 Thread peter dalgaard
n 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, min

Re: [R] Get object name inside lapply

2016-02-26 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 > https://sta

Re: [R] issue -- Packages unavailable for R version 3.2.3

2016-02-24 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] R packages for Mac Users

2016-02-23 Thread peter dalgaard
> On 23 Feb 2016, at 19:12 , Jeff Newmiller <jdnew...@dcn.davis.ca.us> wrote: > > "All" is a pretty stringent test for a herd of cats. Hehehe... [Fades to a grin, leaving only a paw print.] -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business Scho

Re: [R] R packages for Mac Users

2016-02-23 Thread peter dalgaard
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: (

Re: [R] R Software Program Help

2016-02-23 Thread peter dalgaard
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, Denmark Phone: (+45)381

Re: [R] multiple linear regression with quadratic function

2016-02-23 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School S

Re: [R] Reading a datetime vector

2016-02-23 Thread peter dalgaard
(The reason that it is not counting December 31st being that someone thought that 1900 was a leap year.) -pd -- 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] How to create an executable file from R GUI?

2016-02-20 Thread peter dalgaard
ist -- 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] R 3.2.4 and 3.3.0

2016-02-17 Thread Peter Dalgaard
R 3.2.4 "Very Secure Dishes", the wrap-up release of R-3.2.x is now scheduled for March 10 R 3.3.0 "Supposedly Educational", is scheduled for April 14. Detailed schedules are published on developer.r-project.org. For the Core Team Peter D. -- Peter Dalgaard, Professor, C

Re: [R] Estimating Mean of a Poisson Distribution Based on Interval censoring

2016-02-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-guide.html > and provide commented, minimal, se

Re: [R] Why two curves and numerical integration look so different?

2016-02-12 Thread peter dalgaard
>>>>>>>> Why the second curve is flat? I just changed it from -4 to -3. >>>> There is >>>>>>>>> no density in that region. >>>>>>>>> >>>>>>>>> >>>>>>>>>

Re: [R] why is 9 after 10?

2016-02-12 Thread peter dalgaard
;>>> 1951 >>>>> 1947 2067 1967 1812 2119 1999 2086 2133 2081 2165 2365 2330 2340 >>>>> 38 39 40 4167 89 >>>>> 2681 2905 3399 3941 1648 1690 1727 1668 >>>>> >>>>> whereas the reasonable expectati

Re: [R] Why two curves and numerical integration look so different?

2016-02-12 Thread peter dalgaard
e try that and get back to you on my findings in a few hours! :) > > On Fri, Feb 12, 2016 at 11:09 AM, peter dalgaard <pda...@gmail.com> wrote: > I don't see here FAQ 7.31 comes in either (for once!...) > > However, either the density is unnormalized and the integral is

Re: [R] How to extract same columns from identical dataframes in a list?

2016-02-10 Thread peter dalgaard
individual help page. > Where else could I check before pestering the R mailing list, which, of > course, provides quick and valuable answers. You may need someone who got intro'ed shorter time ago than me for that. There are multiple books on R programming and also the free manuals fr

Re: [R] How to extract same columns from identical dataframes in a list?

2016-02-09 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

Re: [R] [FORGED] Re: determine the year of a date

2016-02-03 Thread peter dalgaard
ee > 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 Solbjerg Pla

Re: [R] tcltk table: get celltag value

2016-01-25 Thread peter dalgaard
vallis, OR 97331 > ph: 541-750-0953 > ddalth...@usgs.gov > > [[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.o

Re: [R] tcltk table "validateCommand"

2016-01-25 Thread peter dalgaard
active", fg='black',bg=colors()[411]) > tkgrid(table1) > > How can I get the %S value rather than the tcl(table1,"curvalue")? > > Much thanks for any help. > > -Dan > > [[alternative HTML version deleted]] > > _____

Re: [R] tcltk tkwidget(..."table")

2016-01-22 Thread peter dalgaard
t; > Greetings, > > Adrian > > On Jan 21, 2016 10:36 PM, "Dalthorp, Daniel" <ddalth...@usgs.gov> wrote: > > Once you're up to speed on those issues... > > Any suggestions for getting up to speed on those issues? > > > > On Thu, Jan 21, 20

Re: [R] tcltk: write '[' and ']' in a table cell

2016-01-21 Thread peter dalgaard
NSUBSCRIBE 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 Bus

Re: [R] tcltk tkwidget(..."table")

2016-01-21 Thread peter dalgaard
tually but only after a few hours of effort searching > the web for help. > > E.g. with a table (called table1) with 3 columns and want to set widths to > 30, 5, and 5: > > colwidths<-c(30, 5, 5) > > for(i in 1:3) { > tcl(table1, "width", i - 1, colwidth

Re: [R] tcltk tkwidget(..."table")

2016-01-20 Thread peter dalgaard
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 Business School

Re: [R] Order of formula terms in model.matrix

2016-01-18 Thread peter dalgaard
confirmation for future reference. > > Si vous recevez ce courriel par erreur, veuillez en aviser l'expéditeur > immédiatement, par retour de courriel ou par un autre moyen. Vous avez > accepté de recevoir le(s) document(s) ci-joint(s) par voie électronique à > l'adresse

Re: [R] Order of formula terms in model.matrix

2016-01-17 Thread peter dalgaard
ceding term. So the net result is that you end up with one column less than you probably wanted. -- 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] The "cloud" CRAN server.

2016-01-17 Thread peter dalgaard
olf > > -- > Technical Editor ANZJS > 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 > https://stat.ethz.ch/mailman/listinfo/r-help >

Re: [R] Question about Kolmogorov-Smirnov test behavior

2016-01-07 Thread peter dalgaard
ov-Smirnov test data: b and a D^- = 0.412, p-value < 2.2e-16 alternative hypothesis: the CDF of x lies below that of y The cause should be quite apparent if you do plot(ecdf(b)) plot(ecdf(a), add=T) and plot(function(x)ecdf(a)(x)-ecdf(b)(x), from=-10, to=10) The basic point is that since K

Re: [R] Thanks and further question

2016-01-03 Thread peter dalgaard
(gamhat and > betahat). then what i do My standard idiom for that sort of thing is res <- replicate(2000, { x<-rgbs(n,gama,beta) optim(c(gama,beta), ll.wd, x=x, method = "Nelder-Mead",hessian=FALSE)$par }) which should give you a 2x2000 matrix with each column conta

Re: [R] (no subject)

2016-01-03 Thread peter dalgaard
ian=FALSE) > gamhat<-P.out$par[1] > betahat<-P.out$par[2] > > [[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 gu

Re: [R] [FORGED] qqPlot vs qqcomp

2015-12-24 Thread peter dalgaard
I sincerely > appreciate that. > > Cheers > Mohsen > > > > > On Tuesday, December 22, 2015 10:08 PM, peter dalgaard <pda...@gmail.com> > wrote: > > > > > On 22 Dec 2015, at 07:30 , mohsen hs via R-help <r-help@r-project.org> >

Re: [R] packaging an R-application

2015-12-24 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-containe

Re: [R] R studio installation and running

2015-12-23 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 >> information. Any u

Re: [R] R studio installation and running

2015-12-23 Thread peter dalgaard
nternet ports. > > I'm pretty sure Rstudio server communicates with a web browser, not > with a local Rstudio desktop application. Corrected I must have had it confused with some other client-server setup. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business Scho

Re: [R] [FORGED] qqPlot vs qqcomp

2015-12-22 Thread peter dalgaard
) vs. normal quantiles, whereas qqcomp plots serving itself against lognormal quantiles. So the former is pretty much equal to the latter on a log-log scale. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Ph

Re: [R] F Distribution

2015-12-21 Thread peter dalgaard
hz.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 Plads 3, 2000 Frederiksberg,

Re: [R] unable to download library

2015-12-17 Thread peter dalgaard
> On 17 Dec 2015, at 01:05 , David Winsemius <dwinsem...@comcast.net> wrote: > >> >> On Dec 16, 2015, at 3:44 PM, peter dalgaard <pda...@gmail.com> wrote: >> >> >>> On 17 Dec 2015, at 00:00 , David Winsemius <dwinsem...@comcast.net>

Re: [R] Graphing the Area of Definite Integral

2015-12-16 Thread peter dalgaard
ine <sstol...@gmail.com> > >> wrote: > >>> Dear Peter: in my previous email I forgot to reply to the list too > >>> > >>> I used your code for more than one examples, and it works nicely. But > >> when > >>> I tried to use for the t

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread peter dalgaard
he -pd > Hadley > > -- > http://had.co.nz/ > > __ > 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] Graphing the Area of Definite Integral

2015-12-16 Thread peter dalgaard
fr <- f(right) PP <- Vectorize(function(l,r,fl,fr) polygon(c(l, r, r, l), c(0, 0, fr, fl) , density=20, border = "red")) PP(left,right, fl, fr) sum((fr+fl)/2 * dx) } showIntegral.tr(sqrt, xmin=0, xmax=4) -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen

Re: [R] unable to download library

2015-12-16 Thread peter dalgaard
r.Berkeley.edu not found: 3(NXDOMAIN) pd$ host cnr.Berkeley.edu cnr.Berkeley.edu has address 169.229.201.201 -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email: p

Re: [R] error on multiple "==" in bquote()

2015-12-15 Thread peter dalgaard
2.3 > > Best Regards, > 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.ht

Re: [R] Weird behaviour function args in ellipses

2015-12-15 Thread peter dalgaard
ength.out". Now, looking that the code for seq.default offers a hint at the: It uses things like length(by) internally. In ancient times (in S) that would give you a type mismatch, but one of the things that R changed was to have function lookup disregard non-function objects. In other place

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-14 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. > > David Winsemius > Alameda, CA, USA &

Re: [R] stopifnot with logical(0)

2015-12-13 Thread peter dalgaard
ought of "improving" stopifnot() >> by giving a warning or even stop() for logical(0) expressions, >> but I quickly dismissed that idea after some experiments. >> >> My conclusion: Breaking such a fundamental lemma of logic as >> "the empty set is always true" >> w

Re: [R] stopifnot with logical(0)

2015-12-12 Thread peter dalgaard
over an empty index set is TRUE"? A similar OR operation is FALSE, i.e. they behave like empty products and sums, respectively. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Office: A 4.23 Email:

[R] R 3.2.3 is released

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

Re: [R] there is a vectorinzing version of "[[<-" for "tclArray" class ?

2015-12-10 Thread peter dalgaard
de.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

Re: [R] package MASS - MLE of negative binomial distributions

2015-12-10 Thread peter dalgaard
> > > Many thanks! > Rik > > > __ > 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.h

Re: [R] matrix which results singular but at the same time positive definite

2015-12-10 Thread peter dalgaard
IMPORTANT NOTICE: This e-mail message is intended to be received only by > persons entitled to receive the confidential information it may contain. > E-mail messages to clients of Regione Marche may contain information that is > confidential and legally privileged. Please do not read, cop

Re: [R] package MASS - MLE of negative binomial distributions

2015-12-10 Thread peter dalgaard
way to fix theta (i.e. feed it a value) and only make an > estimate of the expected value? > > Many thanks! > Rik > > > ____ > Van: peter dalgaard [pda...@gmail.com] > Verzonden: donderdag 10 december 2015 16:53 > Aan: Rik Verdonck >

Re: [R] help using SED

2015-12-06 Thread peter dalgaard
cmd <- system(cmd) A further advantage is that you can cat(cmd, \n) before running it and see whether it contains what you intended. I think (but you check) that this works: fmt <- "sed -i '' '/^[\r#]/d; /AGENCY/d' %s/Temp_CashFlow/%

Re: [R] tcltk TK table : Is it possible to block the cell? [Question in 2003, but TK changes the interfaces functions]

2015-12-06 Thread peter dalgaard
ber N.Borges <kle...@yahoo.com.br> wrote: > > thanks by the help > but I do not understand how to set a tag in cell table. > > cleber > > > Em 05/12/2015 18:57, peter dalgaard escreveu: >>> On 05 Dec 2015, at 20:15 , Cleber N.Borges <kle...@yahoo.com.

Re: [R] Tk table: how to get information about configurations ?

2015-12-05 Thread peter dalgaard
://www.avast.com/antivirus >>> >>> __ >>> 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

Re: [R] tcltk TK table : Is it possible to block the cell? [Question in 2003, but TK changes the interfaces functions]

2015-12-05 Thread peter dalgaard
te="normal",bg="white") > Error: could not find function "tkcmd" > > > > .Tcl("set tclarray(0,0) Normal") > Normal > > .Tcl("set tclarray(0,1) Disabled") > Disabled > > .Tcl("set tclarray(0,2) Normal") > Nor

Re: [R] dataframe rbind

2015-12-04 Thread peter dalgaard
NSUBSCRIBE 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 Business S

Re: [R] Error in 'Contrasts<-' while using GBM.

2015-11-30 Thread peter dalgaard
gards, >> Karteek Pradyumna Bulusu. >> >>[[alternative HTML version deleted]] >> >> ______ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help &

Re: [R] Graphing the Area of Definite Integral

2015-11-27 Thread peter dalgaard
eleted]] > > __ > 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, mini

Re: [R] predict() works with the design matrix but throws error with some rows of that matrix

2015-11-20 Thread peter dalgaard
On 20 Nov 2015, at 10:07 , peter dalgaard <pda...@gmail.com> wrote: >> >> On 20 Nov 2015, at 04:53 , Damir Cosic <damir.co...@gmail.com> wrote: >> >> Hello, >> >> I am having problems with predict() after a multinomial logit regress

Re: [R] predict() works with the design matrix but throws error with some rows of that matrix

2015-11-20 Thread peter dalgaard
mn above, but it doesn't: > I'm rusty on this, but I suspect that you need e_i/sum(e_i) with e_i = exp(x b_i) (and b_1 == 0 by convention) -pd -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)3815

Re: [R] predict() works with the design matrix but throws error with some rows of that matrix

2015-11-20 Thread peter dalgaard
ve 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 > an

Re: [R] [FORGED] How to find the likelihood, MLE and plot it?

2015-11-19 Thread peter dalgaard
u are squeamish about relying on argument order: fn <- function(theta) colSums(outer(xvec, theta, function(x,th) dnorm(x=x, mean=th, sd=1, log=TRUE) )) -pd > — > David. >> >> >> On Thu, Nov 19, 2015 at 10:29 AM, peter dalgaard <pda...@gmail.com> wrote: >> &g

Re: [R] [FORGED] How to find the likelihood, MLE and plot it?

2015-11-19 Thread peter dalgaard
m, set maximum=TRUE. In which >> case it will return "20" (or something very close to 20). >> >> Your function fn() appears not to be the log likelihood that you had in >> mind. Perhaps you the negative of fn()??? >> >> cheers, >> >> Rolf Turner >> >>

Re: [R] [FORGED] Problem running mvrnorm

2015-11-18 Thread peter dalgaard
is needed, I can provide its definition >> later. > > __ > 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

Re: [R] Strange result when subsetting a data frame based on a character variable

2015-11-17 Thread peter dalgaard
> Sent from my phone. Please excuse my brevity. > > On November 17, 2015 1:57:15 PM PST, peter dalgaard <pda...@gmail.com> wrote: >> >>> On 17 Nov 2015, at 20:37 , Bert Gunter <bgunter.4...@gmail.com> >> wrote: >>> >>>> 2 == &

Re: [R] Strange result when subsetting a data frame based on a character variable

2015-11-17 Thread peter dalgaard
o notice that, for similar reasons > 10 > "2" [1] FALSE (At least in most collations. I recently discovered that OSX Finder sorted 2dnorm.R between 02-Probability.toc and 03-Combinatorics-2x2.pdf.) -- Peter Dalgaard, Professor, Center for St

[R] Release of R 3.2.3 scheduled for December 10

2015-11-13 Thread Peter Dalgaard
We intend to have a patch release on December 10, nickname will be "Wooden Christmas-Tree". The detailed schedule will be made available via developer.r-project.org as usual (later today). For the R Core Team, Peter D. ___ r-annou...@r-project.org

Re: [R] NULL dev.lis()

2015-11-09 Thread peter dalgaard
.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. >> >> >> >>> -- >>> Pascal Oe

Re: [R] Read a file on every 0.5 (or less) second intervall

2015-11-07 Thread peter dalgaard
he 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)38153501 Email: pd@

Re: [R] Help with dplyr

2015-11-05 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,

Re: [R] CentOS 6.5 x86_64 R installation throwing "Error in download.file(url, destfile = f, quiet = TRUE) : unsupported URL scheme" error

2015-11-01 Thread peter dalgaard
m Engineer > > *Contexti | Big Data Analytics* > Level 4, 80 Clarence Street Sydney NSW > dam...@contexti.com | +61 422 927 757 | http://www.contexti.com > > [[alternative HTML version deleted]] > > __ > R-help@r-p

Re: [R] Nested ANOVA yields surprising results

2015-10-31 Thread peter dalgaard
enaar.net > > __ > 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-gui

Re: [R] find all unit vectors which are orthogonal to a given vector

2015-10-29 Thread peter dalgaard
rovide commented, minimal, self-contained, reproducible code. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg Plads 3, 2000 Frederiksberg, Denmark Phone: (+45)38153501 Email: pd@cbs.dk Priv: pda...@gmail.com __

Re: [R] Creating new variables in R

2015-10-26 Thread peter dalgaard
ized to enter >> into any contracts on behalf of the company except for cases in which he/she >> is expressly authorized to do so in writing, and such authorization or power >> of attorney is submitted to the recipient or the person represented by the >> recipient,

Re: [R] [FORGED] Re: How to correct documentation?

2015-10-25 Thread peter dalgaard
ity of Auckland >> Phone: +64-9-373-7599 ext. 88276 > > __ > 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

Re: [R] virus/trojan in contributed package: 'svs'

2015-10-23 Thread peter dalgaard
; > Bijoy > > __ > 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] Get the output of a function in R GUI

2015-10-22 Thread peter dalgaard
g 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 Statisti

Re: [R] Linear regression with a rounded response variable

2015-10-21 Thread peter dalgaard
ead 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)38153501 Email: pd

Re: [R] value of variable in ls()

2015-10-19 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. -- Peter Dalgaard, Professor, Center for Statistics, Copenhagen Business School Solbjerg

Re: [R] Creating a package with specail caracters

2015-10-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. --

Re: [R] Creating a package with specail caracters

2015-10-15 Thread peter dalgaard
caracters-tp4713615p4713618.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the p

Re: [R] Creating a package with specail caracters

2015-10-15 Thread peter dalgaard
; -- > View this message in context: > http://r.789695.n4.nabble.com/Creating-a-package-with-specail-caracters-tp4713615p4713620.html > Sent from the R help mailing list archive at Nabble.com. > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >

Re: [R] Fitting a curve to weibull distribution in R using nls

2015-10-14 Thread peter dalgaard
t.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] Using MASS::boxcox for a single variable gives different results than the original paper

2015-10-12 Thread peter dalgaard
> optimize(V_fo, c(-3,3)) > # lambda: > # 0.40782 > > [[alternative HTML version deleted]] > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLE

Re: [R] Data-frame selection

2015-10-10 Thread peter dalgaard
.49, 2, 2.39, 1.65, 2.05, 2.75, 2.23, 1.39, >>> 2.66, 1.05, 2.52, 2.49, 2.97, 0.43, 1.36, 0.79, 1.71, 1.95, 2.73, >>> 2.73, 2.39, 2.17, 2.34, 2.42, 1.75, 0.66, 1.64, 0.24, 2.11, 2.11, >>> 1.18)), .Names = c("ID", "Group", "Var"), row.names = c(NA, 50L >

Re: [R] Data-frame selection

2015-10-10 Thread peter dalgaard
6 11 1T3 2.86 12 1T3 0.53 13 1T3 1.66 14 1T3 3.24 15 1T3 1.34 21 2T2 2.00 22 2T2 2.39 23 2T2 1.65 24 2T2 2.05 25 2T2 2.75 26 2T2 2.23 27 2T2 1.39 28 2T2 2.66 29 2T2 1.05 30 2T3 2.52 -- Peter Dalgaard, Professor, Center fo

Re: [R] Construct a lower-triangular matrix

2015-10-10 Thread peter dalgaard
ing trapped by column-major storage layout and by in/excluding the diagonal.) -pd > > Berend > > __ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do

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