[R] model.matrix behaviour

2016-01-07 Thread Axel Urbiz
Hello, I apologize my prior email was sent in html. It is not very clear to me from the model.matrix documentation, why simply changing the order of terms in the formula may give a different design matrix. Please note I’m purposely not including main effects in the model formulae. set.seed(1)

[R] mlogit.optim

2016-01-07 Thread Alaa Sindi
Hi All, do anyone have an example about mlogit.optim function that explain how to use this function other than the one in the manual. Thanks __ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-h

Re: [R] "par(tcl=0.5,las=1)" doesn't work

2016-01-07 Thread Ben Tupper
Hi, I think it may be the order in which your par() configuration occurs relative to png(). When you open a new device, as you have with png(), the default par() values for that device are exposed. If you move your par() statement to *after* your call to png() you get the result you desire. S

[R] Fwd: exact trend test (enumerate all possible contingency tables with fixed row and column margins)

2016-01-07 Thread Bert Gunter
Sorry -- neglected to reply to the list. -- Bert -- Forwarded message -- From: Bert Gunter Date: Thu, Jan 7, 2016 at 10:38 AM Subject: Re: [R] exact trend test (enumerate all possible contingency tables with fixed row and column margins) To: li li I do not know whether there

Re: [R] exact trend test (enumerate all possible contingency tables with fixed row and column margins)

2016-01-07 Thread li li
I did check the coin package before. I did not see a function in that package that can be used to list all the possible contingency tables with fixed margins. Of course I googled "exact trend test using R". There is not enough help there. For up to three groups, I can easily enumerate all the conti

Re: [R] exact trend test (enumerate all possible contingency tables with fixed row and column margins)

2016-01-07 Thread Michael Dewey
You received a number of suggestions about where to look and packages that might be suitable. Did you do that? If you did which ones did you look at and why did you reject them? On 07/01/2016 16:29, li li wrote: Thanks for all the reply. Below is the data in a better format. addmargins(dat)

Re: [R] Bezier to line segments

2016-01-07 Thread Greg Snow
You may also be interested in the xspline function (graphics package, so you don't need to install or load anything extra) since you mention general splines. These splines can be made similar to Bezier curves (but not exactly the same). The function returns a set of coordinates (when draw=FALSE)

Re: [R] "par(tcl=0.5,las=1)" doesn't work

2016-01-07 Thread David Winsemius
> On Jan 7, 2016, at 12:30 AM, Hans Haußmann wrote: > > Hi Bert Gunter and David Winsemius, > > sorry for sending my first post to R-help in German and thank you David for > your efforts to translate. > > Here are two scripts now. In the first one the graphics parameters "tcl" and > "las" ar

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

2016-01-07 Thread peter dalgaard
On 07 Jan 2016, at 14:09 , Shea Lutton wrote: > Dear R-Help, > I am trying to understand the output of the KS test on a pair of files. > I am trying to determine if the CDF of one distribution is less than (to the > left of) the CDF of a second distribution. My problem is that regardless

Re: [R] exact trend test

2016-01-07 Thread Michael Dewey
Have you tried Google? exact randomisation trend test r finds what look like clearly relevant packages On 07/01/2016 04:16, li li wrote: Hi all, Is there an R function that does exact randomization trend test? For example, consider the 2 by 5 contingency table below: dose0