For the parameter that is to change set it at a value

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ingle parameter while the other two are held constant at their original value. For the parameter that is to change set it at a value equal to, 20% greater than and 20% lower than the original value. Label each of your plots as to which model is being used, and which parameters are being changed. par(mfrow=c(3,3)) set.seed = 235 diam.tree = runif(200,10,60) # Gompertz model # parameters: a=200,b=3,c=0.3 # a.gomp = 200 April 2, 2013 b.gomp = 3 c.gomp = 0.3 # pred.gomp = a.gomp*exp(­b.gomp*exp(­diam.tree*c.gomp)) height.gomp = a.gomp*exp(­b.gomp*exp(­diam.tree*c.gomp))+rnorm(200,0,2) plot(diam.tree,height.gomp,type="n",xlab="Tree Diameter",ylab="Tree Height", ylim=c(130,250)) points(diam.tree,height.gomp,pch=15) lines(sort(diam.tree),sort(pred.gomp),col=15,lwd=3) range(height.gomp) title("Gompertz gamma0 original") # Gompertz model # parameters: a=200,b=3,c=0.3 # a.gomp = 200 * 0.8 b.gomp = 3 c.gomp = 0.3 # pred.gomp = a.gomp*exp(­b.gomp*exp(­diam.tree*c.gomp)) height.go...
View Full Document

Ask a homework question - tutors are online