Fit Emax model to data
fit_EmaxModel.RdEstimate parameters Emax, EC50 and Hill parameter from x and y
values provided with a data frame. Error model parameters are
estimated alongside the model parameters via a maximum-
likelihood approach.
fit_EmaxModel(
data,
Emax = NULL,
EC50 = NULL,
Hill = NULL,
y0 = 0,
errmodel = "abs",
log10Data = ""
)Arguments
- data
data frame with
xvalues (first column) andyvalues (second column).- Emax
assume Emax to be fixed on this value. If
NULL, Emax is estimated.- EC50
assume EC50 to be fixed on this value. If
NULL, EC50 is estimated.- Hill
assume Emax to be fixed on this value. If
NULL, Hill is estimated.- y0
assume y0 (intercept) to be fixed on this value. If
NULL, y0 is estimated.- errmodel
the error model to be use, either
"abs"(absolute error),"rel"(proportional error) or"absrel"(absolute + proportional error).- log10Data
specifies if
xoryvalues arelog10-transformed. Possible values are"x"(first column contains log10-values),"y"(second column contains log10-values),"xy"(both columns contain log10-values) or""(no column contains log10-values).
Value
list with
objval(final objective function value, -2*log(L))converged(convergenceTRUEorFALSE)iterations(number of iterations)parameters(data frame of parameter values, estimated and fixed)prd(prediction function to evaluate the fitted model at newxvalues)prediction(predicted values at thexvalues provded withdata)plot(function that produces a plot)table(parameter estimation table)
Details
The model y = y0 + Emax * x^Hill / (EC50^Hill + x^Hill)
is fitted to the x and y values provided with data.
The fit is based on minimization of twice the negative
log-likelihood (-2*log(L)).
See also
Other Auxiliary:
IQRloadCSVdata(),
IQRsaveCSVdata(),
and(),
aux_explode(),
aux_explodePC(),
aux_fileparts(),
aux_fileread(),
aux_filewrite(),
aux_getRelPath(),
aux_mkdir(),
aux_na_locf(),
aux_postFillChar(),
aux_preFillChar(),
aux_quantilenumber(),
aux_rmdir(),
aux_simplifypath(),
aux_splitVectorEqualPieces(),
aux_strFindAll(),
aux_strrep(),
aux_strtrim(),
aux_unlevel(),
aux_version(),
calcAICBIC(),
clusterX(),
compare_IQRmodel_IQRsysModel_simulation(),
format_GUM(),
ge(),
gen_aux_version(),
geocv(),
geomean(),
geosd(),
ginv(),
gt(),
interp0(),
interp1(),
interpcs(),
inv_logit(),
le(),
logit(),
lt(),
mod(),
mvrnorm(),
norm_M3(),
or(),
piecewise(),
progressBar(),
remove_duplicates(),
run_silent_IQR(),
stopIQR(),
tempdirIQR(),
tempfileIQR(),
warningIQR()
