Displaying 3 results from an estimated 3 matches for "my_mode".
Did you mean:
my_code
2012 Jan 23
0
problems with dlmBSample of the dlm package
Dear R users,
I am trying to use the dlm package, and in particular the dlmBSample function.
For some reason that I am not able to understand, this function does not work properly and the plot of the result does not make sense, while dlmFilter works perfectly.
I think that my_mod is correct, because the output of my_dlmFilter$mod is fine. Where is my mistake or my misunderstanding?
This is the
2009 Jan 27
2
working with tables -- was Re: Mode (statistics) in R?
Ok, so I'm slowly figuring out what a factor is, and was able to follow
the related thread about finding a mode by using constructs like
my_mode = as.numeric(names(table(x))[which.max(table(x))])
Now, suppose I want to keep looking for other modes? For example,
Rgames> sample(seq(1,10),50,replace=TRUE)->bag
Rgames> bag
[1] 2 8 8 10 7 3 2 9 8 3 8 9 6 6 10 10 7 1
[19] 9 5 4 3 3 5 10 3 6 3 2 8 4 2 1...
2009 Jan 26
3
Mode (statistics) in R?
Hopefully this is a pretty simple question:
Is there a function in R that calculates the "mode" of a sample? That is, I would like to be able to determine the value that occurs the most frequently in a data set.
I tried the default R "mode" function, but it appears to provide a storage type or something else.
I tried the RSeek and some R documentation that I