search for: hendsom

Displaying 7 results from an estimated 7 matches for "hendsom".

Did you mean: hendsome
2018 Jan 30
0
Simulation based on runif to get mean
...ne. Rui Barradas Enviado a partir do meu smartphone Samsung Galaxy.-------- Mensagem original --------De: Eric Berger <ericjberger at gmail.com> Data: 30/01/2018 10:12 (GMT+00:00) Para: Rui Barradas <ruipbarradas at sapo.pt> Cc: Daniel Nordlund <djnordlund at gmail.com>, smart hendsome <putra_autumn86 at yahoo.com>, r-help at r-project.org Assunto: Re: [R] Simulation based on runif to get mean Or a shorter version of Rui's approach: set.seed(2511)? ? # Make the results reproduciblefun <- function(n){? f <- function(){? ? c(mean(runif(5,1,10)),mean(runif(5,10,20)...
2018 Jan 30
0
Simulation based on runif to get mean
On 1/29/2018 9:03 PM, smart hendsome via R-help wrote: > Hello everyone, > I have a question regarding simulating based on runif.? Let say I have generated matrix A and B based on runif. Then I find mean for each matrix A and matrix B.? I want this process to be done let say 10 times. Anyone can help me.? Actually I want make t...
2018 Jan 29
0
Result show the values of fitting gamma parameter
...e"], res$B$estimate["rate"]) > names(out) <- c("A shape","B shape","A rate","B Rate") > print(out) # A shape B shape A rate B Rate # 3.702253 31.300800 1.234126 3.912649 HTH, Eric On Mon, Jan 29, 2018 at 10:25 AM, smart hendsome via R-help < r-help at r-project.org> wrote: > Hi, > Let say I have data by two columns A and B, and I have fit each column > using the gamma distribution by 'fitdist' . I just want the result show > only the shape and rate only. > > Eg: > library(fitdistrplus)...
2018 Jan 30
2
Simulation based on runif to get mean
Hello everyone, I have a question regarding simulating based on runif.? Let say I have generated matrix A and B based on runif. Then I find mean for each matrix A and matrix B.? I want this process to be done let say 10 times. Anyone can help me.? Actually I want make the function that I can play around with the number of simulation process that I want. Thanks. Eg: a <- matrix(runif(5,1, 10))
2018 Jan 30
1
Simulation based on runif to get mean
...fun <- function(n){ f <- function(){ a <- runif(5, 1, 10) b <- runif(5, 10, 20) colMeans(cbind(a, b)) } replicate(n, f()) } fun(10) Hope this helps, Rui Barradas On 1/30/2018 8:58 AM, Daniel Nordlund wrote: > On 1/29/2018 9:03 PM, smart hendsome via R-help wrote: >> Hello everyone, >> I have a question regarding simulating based on runif.? Let say I have >> generated matrix A and B based on runif. Then I find mean for each >> matrix A and matrix B.? I want this process to be done let say 10 >> times. Anyon...
2018 Jan 29
2
Result show the values of fitting gamma parameter
Hi, Let say I have data by two columns A and B, and I have fit each column using the gamma distribution by 'fitdist' . I just want the result show only the shape and rate only. Eg: library(fitdistrplus) A <-c(1,2,3,4,5) B<-c(6,7,8,9,10) C <-cbind(A,B) apply(C, 2, fitdist, "gamma") Output show like this: $A Fitting of the distribution ' gamma ' by maximum
2018 May 27
1
if else with 4 conditions problem
Hi everyone, I have two columns: ? ?A? ? ? ? ? ? ? ?B ? ?1? ? ? ? ? ? ? ?1? ?1? ? ? ? ? ? ? ?0 ? ?0? ? ? ? ? ? ? ?1 ? ?0? ? ? ? ? ? ? ?0 I have 4 categories which are: 1) if A = 1 and B =1 then A1 = 1, else A2 = 0, A3 = 0, A4 = 0 2) if A = 1 and B =0 then A1 = 0, else A2 =1, A3 = 0, A4 = 0 3) if A = 0 and B = 1 then A1 = 0, else A2 = 0, A3 = 1, A4 = 0 4) if A = 0 and B =0 then A1 = 0, else A2 =