Re: [R] Elasticity in Leslie Matrix

2007-10-29 Thread Chris Stubben
Sorry, I didn't think carefully about your question on my first reply, so please ignore it. Chapter 9 in Morris and Doak (2002) cover vital rate elasticities and sensitivities (see Box 9.1 for Matlab code http://www.sinauer.com/PVA/vitalsens.m). Simon, thanks for posting your code, I will add

Re: [R] Elasticity in Leslie Matrix

2007-10-26 Thread Simon Blomberg
After a short exchange with the original questioner, I wrote the following function to calculate the elasticities of lower level variables in population transition matrices (Leslie matrices etc.) Perhaps it will be of use to others. There is no error-checking, so use with care. Users should cons

Re: [R] Elasticity in Leslie Matrix

2007-10-22 Thread Simon Blomberg
On Mon, 2007-10-22 at 06:24 -0700, privalan wrote: > Dear R-users, > > I would like to calculate elasticities and sensitivities of each parameters > involved in the following transition matrix: > > A <- matrix(c( > sigma*s0*f1, sigma*s0*f2, >s, v > ), nrow=2, byr

Re: [R] Elasticity in Leslie Matrix

2007-10-22 Thread Chris Stubben
> I would like to calculate elasticities and sensitivities of each parameters > involved in the following transition matrix: > > A <- matrix(c( > sigma*s0*f1, sigma*s0*f2, >s, v > ), nrow=2, byrow=TRUE,dimnames=list(stage,stage)) > > The command "eigen.analysis" a

[R] Elasticity in Leslie Matrix

2007-10-22 Thread privalan
Dear R-users, I would like to calculate elasticities and sensitivities of each parameters involved in the following transition matrix: A <- matrix(c( sigma*s0*f1, sigma*s0*f2, s, v ), nrow=2, byrow=TRUE,dimnames=list(stage,stage)) The command "eigen.analysis" av