[R] simulate from a multivariate lognormal distribution with fixed covariance/correlation structure

2007-03-23 Thread Mollet, Fabian
Dear R users I use simulated data to evaluate a model by sampling the parameters in my model from lognormal distributions. I would like these (lognormal distributed) parameters to be correlated, that is, I would like to have pairwise samples of 2 parameters with a given correlation coefficient.

[R] generating lognormal variables with given correlation

2007-03-23 Thread Mollet, Fabian
Dear R users I use simulated data to evaluate a model by sampling the parameters in my model from lognormal distributions. I would like these (lognormal distributed) parameters to be correlated, that is, I would like to have pairwise samples of 2 parameters with a given correlation coefficient.

[R] constrained simulated annealing

2007-01-26 Thread Mollet, Fabian
Hello! I try to fit a non linear model. It is a quite complex (4 parameters) biological model and therefore the optimization surface is probably very rough, i.e. there are several optima. The optimum being found by the algorithm depends thus on the starting values I feed in. I have seen the "SANN

[R] set off error messages

2006-09-26 Thread Mollet, Fabian
Hello there! I'm creacting a loop for(i in 1:n){...}within which I build a nls model at each iteration. for some of the values of i, the algoritm in the nls function doesn't converge or cannot find a solution and consequently an error message is produced, and so my loop is interupted. The erro