Re: [R] Difference in p-value obtained in an interrupted time-series analysis (containing main effects and and interaction) vs. a simple regression containing only main effects.

2025-06-29 Thread John Fox
Dear John, Without investigating your data and models in detail, it's not surprising that the p-values for the two coefficients differ: the models have different residual standard errors (and hence different coefficient standard errors) and different residual degrees of freedom (and hence are

[R] Difference in p-value obtained in an interrupted time-series analysis (containing main effects and and interaction) vs. a simple regression containing only main effects.

2025-06-29 Thread Sorkin, John
The question that follows in NOT an R question, but rather a statistics question. I hope you will forgive my statistics question. I am investigating interrupted time-series analysis. My data has two periods, period 0 and period 1. In period 0 the slope is positive. In period 2 the slope is nega

Re: [R] Merging matrices of different rows

2025-06-29 Thread Steven Yen
I understand. Thanks. My NA rows are to follow the end of the shorter matrix, to make the two matrices same depth (number of rows), as in Garbor’s demonstration: [,1] [,2] [,3] [,4] [1,]1759 [2,]286 10 [3,]397 11 [4,]4 108 12 [5,

Re: [R] code for drawing the R logo

2025-06-29 Thread Hasan Diwan
Rajan, https://hasan.d8u.us/Rlogo.svg Best I could do in a pinch. -- H > On 6/27/2025 12:16 PM, Ranjan Maitra via R-help wrote: > >> Hi, > >> > >> Is there code for drawing the R logo? https://www.r-project.org/logo/ > has the logo in svg and png formats, and also > >> the terms of the license, bu

Re: [R] Merging matrices of different rows

2025-06-29 Thread Gabor Grothendieck
You don't have to arrange that the shorter one comes second. The cbind.ts approach works whether the shorter one is first or second. On Sun, Jun 29, 2025 at 12:14 PM Steven Yen wrote: > > Thanks to all. In my application I can always arrange to have the shorter > matrix come second which is to

Re: [R] Merging matrices of different rows

2025-06-29 Thread Steven Yen
Thanks to all. In my application I can always arrange to have the shorter matrix come second which is to be filled with NA. I Will try the ts approach. Words work less effectively for me. This could have work if plain R can be more accommodating in cbind. Thanks. Steven from iPhone > On Jun 2

Re: [R] Merging matrices of different rows

2025-06-29 Thread Jeff Newmiller via R-help
This capability that ts objects have seems ill-advised. There is always a meaning associated with which row and column a matrix has, and this assumes that the shorter dimension is associated with times corresponding to the first rows of the longer matrix. In general you don't know whether the NA

Re: [R] code for drawing the R logo

2025-06-29 Thread J C Nash
https://dahtah.github.io/imager/ascii_art.html Shows the R logo as an ASCII art print. Moreover, I have a UseR! t-shirt from the 2011 conference with this printed on the back. Vaguely recall having the code, but I can't find it now. JN On 2025-06-29 07:49, Robert Baer via R-help wrote: Not an

Re: [R] Merging matrices of different rows

2025-06-29 Thread Gabor Grothendieck
cbind does work on differently shaped ts objects so: a <- matrix(1:12,nrow=6) b <- matrix(5:12,nrow=4) tmp <- cbind(ts(a), ts(b)) array(tmp, dim(tmp)) giving [,1] [,2] [,3] [,4] [1,]1759 [2,]286 10 [3,]397 11 [4,]4 108

Re: [R] code for drawing the R logo

2025-06-29 Thread Robert Baer via R-help
Not an expert, but from my read of the explanation you linked, the .svg IS the source.  You could think of it as the source for .svg render engines, On 6/27/2025 12:16 PM, Ranjan Maitra via R-help wrote: Hi, Is there code for drawing the R logo? https://www.r-project.org/logo/ has the logo in