search for: simresults

Displaying 4 results from an estimated 4 matches for "simresults".

Did you mean: simresult
2005 Oct 13
1
problems with loop and plot function
Hi all R users, I have problems with my second loop for drawing the three curves in the same graphic. I need help please Thank you in advance ######################################################################### simulation <- function(k, n){ conc <- seq(0,100,by=0.5) #choixg <- seq(1, length(conc)) choixg <- rep(0,length(conc)) for (i in 1:length(conc)){ choixg[i] <- (k
2005 Oct 12
0
loop for plot function
Hello all R users, I would like to add another loop to my following R code ( it works for the moment correctly) , which will be able to me to vary n (see the code) from 1 to 4 or 5. And I also would like apply the plot function in this case, eg all four or five figures in the same graphic (n= 1, 2, ..., 4 ou 5) I have tested one, but unsuccessfully. I need you to solve this problems Thank you
2003 Sep 10
4
recording and taking mean of a set of matrices
...s to me the results could go to a 3 dimensional array; I suppose it would be good to make the last index vary with the simulation. Neither of these approaches seems ideal, because I would need to handle the matrix separately from the other data I want to store. I'm hoping to do something like simresults <- rbind(simresults, r$coeff, r$var). The result also needs to be amenable to calculations. If m1 and m2 are matrices (same dimension for each) mean(list(m1, m2)) doesn't work, so even though list will record the data it isn't a great form for analysis. (But I suppose some apply varia...
2005 Oct 11
2
Problems with plot function
Hello all R users, My simulation function works correctly, but I have problems with plot function. You will find the following code using it. Thank you for your help ##################################################" simulation <- function(k, n){ conc <- seq(0,10,by=0.5) #choixg <- seq(1, length(conc)) choixg <- rep(0,length(conc)) for (i in 1:length(conc)){ choixg[i]