Re: [R] need help calculating the indicator function

2021-01-29 Thread Rui Barradas
Hello, Maybe this? n_l <- function(Y, l, na.rm = FALSE) sum(Y == l, na.rm = na.rm) set.seed(2020) q <- 6 y <- sample(q, 10, TRUE) l <- 4 n_l(y, l) #[1] 3 Hope this helps, Rui Barradas Às 14:27 de 29/01/21, Ablaye Ngalaba escreveu: Hello, please, I need to calculate the indicator function

Re: [R] arima/fixed

2021-01-29 Thread Rolf Turner
On Fri, 29 Jan 2021 12:47:25 + Nasia Petsa wrote: > Dear all, > > I have the following problem with determining the argument fixed in > arima function. What is the length of argument fixed for an > ARIMA(1,0,0)(0,1,1) and what is the correct order for the parameters Hmm. The help is in

Re: [R] need help calculating the indicator function

2021-01-29 Thread David Winsemius
Perhaps (in R): n_i <- cumsum( Y==l ) You should read further regarding R's logical class, and operators that work on it, and how it is coerced. -- David On 1/29/21 6:27 AM, Ablaye Ngalaba wrote: > Hello, > please, I need to calculate the indicator function as I underlined in my > attached

Re: [R] need help calculating the indicator function

2021-01-29 Thread Bert Gunter
Is this a homework problem? The posting guide linked below explicitly says: "*Basic statistics and classroom homework:* R-help is not intended for these." Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Brea

[R] arima/fixed

2021-01-29 Thread Nasia Petsa
Dear all, I have the following problem with determining the argument fixed in arima function. What is the length of argument fixed for an ARIMA(1,0,0)(0,1,1) and what is the correct order for the parameters ? [[alternative HTML version deleted]] __

Re: [R] Error when calling (R 4.0.x on Windows) from Python

2021-01-29 Thread Duncan Murdoch
On 29/01/2021 3:57 a.m., Marcel Baumgartner wrote: Dear Bill, Duncan and Martin, thanks for your investigation. Can you clarify on next steps? Is this now an official bug, or have you found a workaround? For your information: the issue showed up the first time when I called R 4.0.2 from withi

Re: [R] Error when calling (R 4.0.x on Windows) from Python

2021-01-29 Thread Marcel Baumgartner
Dear Bill, Duncan and Martin, thanks for your investigation. Can you clarify on next steps? Is this now an official bug, or have you found a workaround? For your information: the issue showed up the first time when I called R 4.0.2 from within a software called "IDEA" (from Caseware Analytics), us