ble_profile {BLA} | R Documentation |
Likelihood profile for various measurement error values
Description
Estimates the standard deviation of measurement error (sign
) of the response
variable, an input of the cbvn()
function, when a measured value is not
available (Lark & Milne, 2016). sigh
is fixed at each of a set of
values in turn, and remaining parameters are estimated conditional on sigh
by maximum likelihood. The maximized likelihoods for the sequence of values
constitutes a likelihood profile. The value of sigh
where the profile
is maximized is selected.
Usage
ble_profile(data, sigh, model="lp", equation=NULL, start, UpLo="U",
optim.method="BFGS", plot=TRUE)
Arguments
data |
A dataframe with two numeric columns, independent ( |
sigh |
A vector of the suggested standard deviations of the measurement error values. |
model |
Selects the functional form of the boundary line. It includes
|
equation |
A custom model function writen in the form of an R function. Applies
only when argument |
start |
A numeric vector of initial starting values for optimization in fitting the boundary model. Its length and arrangement depend on the suggested model:
|
UpLo |
Selects the type of boundary. |
optim.method |
Describes the method used to optimize the model as in the
|
plot |
If |
Details
Some inbuilt models are available for the cbvn()
function. The suggest model
forms are as follows:
Linear model (
"blm"
)where
is the intercept and
is the slope.
Linear plateau model (
"lp"
)where
is the intercept ,
is the slope and
is the maximum response.
The logistic (
"logistic"
) and inverse logistic ("inv-logistic"
) modelswhere
is a scaling parameter ,
is a shape parameter and
is the maximum response.
Logistic model (
"logisticND"
) (Nelder (1961))where
is a scaling parameter,
is a shape parameter and
is the maximum response.
Double logistic model (
"double-logistic"
)where
is a scaling parameter one,
is shape parameter one,
and
are the maximum response ,
is a scaling parameter two and
is a shape parameter two.
Quadratic model (
"qd"
)where
is a constant,
is a linear coefficient and
is the quadratic coefficient.
Trapezium model (
"trapezium"
)where
is the intercept one,
is the slope one,
is the maximum response,
is the intercept two and
is the slope two.
Mitscherlich model (
"mit"
)where
is the intercept,
is a shape parameter and
is the maximum response.
Schmidt model (
"schmidt"
)where
is ascaling parameter,
is a shape parameter (x-value at maximum response ) and
is the maximum response .
The function ble_profile()
utilities the optimization procedure of the
optim()
function to determine the model parameters. There is a tendency
for optimization algorithms to settle at a local optimum. To remove the risk of
settling for local optimum parameters, it is advised that the function is run
using several starting values and the results with the largest likelihood
can be taken as a representation of the global optimum.
The common errors encountered due to poor start values
function cannot be evaluated at initial parameters
initial value in 'vmmin' is not finite
Value
A list of length 2 containing the suggested standard deviations of measurement error values and the corresponding log-likelihood values. additionally, a likelihood profile plot (log-likelihood against the standard deviation of measurement error) is produced.
Author(s)
Chawezi Miti <chawezi.miti@nottingham.ac.uk>
References
Lark, R. M., & Milne, A. E. (2016). Boundary line analysis of the effect of water filled pore space on nitrous oxide emission from cores of arable soil. European Journal of Soil Science, 67 , 148-159.
Nelder, J.A. 1961. The fitting of a generalization of the logistic curve. Biometrics 17: 89–110.
Examples
x<-evapotranspiration$`ET(mm)`
y<-evapotranspiration$`yield(t/ha)`
data<-data.frame(x,y)
start<-c(0.5,0.02,289.6,2.4,83.7,1.07,0.287)
sigh <- c(0.6,0.7,0.8,0.9)
ble_profile(data,start=start,model = "blm", sigh = sigh)