fitbusscher | R Documentation |
Function to self start the nonlinear Busscher's (1990) model for penetration
resistance, i.e., Pr = b0 * (θ ^ {b1}) * (Bd ^ {b2}). It creates initial
estimates (by log-linearization) of the parameters b0, b1 and b2 and uses them
to provide its least-squares estimates through nls
.
fitbusscher(Pr, theta, Bd, ...)
Pr |
a numeric vector containing penetration resistance values. |
theta |
a numeric vector containing soil moisture values at which to evaluate the model. |
Bd |
a numeric vector containing bulk density values at which to evaluate the model. |
... |
further arguments to |
A nls
output (see help(nls)
).
Anderson Rodrigo da Silva <anderson.agro@hotmail.com>
Busscher, W. J. (1990). Adjustment of flat-tipped penetrometer resistance data to common water content. Transactions of the ASAE, 3:519-524.
fitlbc
, nls
, summary.nls
,
predict.nls
, Rsq
data(compaction) attach(compaction) out <- fitbusscher(Pr = PR, theta = Mois, Bd = BD) summary(out) Rsq(out) # 3D plot X <- seq(min(Mois), max(Mois), len = 30) # theta Y <- seq(min(BD), max(BD), len = 30) # Bd f <- function(x, y) coef(out)[1] * (x^coef(out)[2]) * (y^coef(out)[3]) Z <- outer(X, Y, f) persp(X, Y, Z, xlab = "Soil moisture", ylab = "Soil bulk density", zlab = "Penetration resistance", ticktype = "detailed", phi = 20, theta = 30) # End (not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.