TSE is used to calculate y values at given x values using the Todd and Smart's re-expression of Preston's universal egg shape.
UTF-8
TSE(P, x, simpver =NULL)
Arguments
P: the parameters of the original Todd-Smart equation or one of its simplified versions.
x: the given x values ranging from -1 to 1.
simpver: an optional argument to use the simplified version of the original Todd-Smart equation.
Details
When simpver = NULL, the original Preston equation is selected:
y=d0z0+d1z1+d2z2+d3z3,
where
z0=1−x2,z1=x1−x2,z2=x21−x2,z3=x31−x2.
Here, x and y represent the abscissa and ordinate of an arbitrary point on the Todd-Smart curve; d0, d1, d2, and d3 are parameters to be estimated.
When simpver = 1, the simplified version 1 is selected:
y=d0z0+d1z1+d2z2,
where x and y represent the abscissa and ordinate of an arbitrary point on the Todd-Smart curve; d0, d1, and d2 are parameters to be estimated.
When simpver = 2, the simplified version 2 is selected:
y=d0z0+d1z1,
where x and y represent the abscissa and ordinate of an arbitrary point on the Todd-Smart curve; d0, and d1 are parameters to be estimated.
When simpver = 3, the simplified version 3 is selected:
y=d0z0+d2z2,
where x and y represent the abscissa and ordinate of an arbitrary point on the Todd-Smart curve; d0, and d2 are parameters to be estimated.
Returns
The y values predicted by the Todd-Smart equation.
Note
Here, x and y in the Todd-Smart equation are actually equal to y/a
and x/a, respectively, in the Preston equation (See PE for details). Since a represents half the egg length, this means that the egg length is fixed to be 2, and the maximum egg width is correspondingly adjusted to keep the same scale.
Biggins, J.D., Thompson, J.E., Birkhead, T.R. (2018) Accurately quantifying the shape of birds' eggs. Ecology and Evolution 8, 9728−9738. tools:::Rd_expr_doi("10.1002/ece3.4412")
Nelder, J.A., Mead, R. (1965). A simplex method for function minimization. Computer Journal 7, 308−313. tools:::Rd_expr_doi("10.1093/comjnl/7.4.308")
Preston, F.W. (1953) The shapes of birds' eggs. The Auk 70, 160−182.
Shi, P., Gielis, J., Quinn, B.K., Niklas, K.J., Ratkowsky, D.A., Schrader, J., Ruan, H., Wang, L., Niinemets, Ü. (2022) 'biogeom': An R package for simulating and fitting natural shapes. Annals of the New York Academy of Sciences 1516, 123−134. tools:::Rd_expr_doi("10.1111/nyas.14862")
Todd, P.H., Smart, I.H.M. (1984) The shape of birds' eggs. Journal of Theoretical Biology