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
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
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
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
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]]
__
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
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
7 matches
Mail list logo