SSparLog | R Documentation |
Computes the parabola logarithmic function
SSparLog(input,a,b,c)
input |
a numeric vector of values at which to evaluate the model. |
a |
estimated model parameter |
b |
estimated model parameter |
c |
estimated model parameter |
a numeric vector of the same length as input. It is the value of the expression a*x^(b+c*log(x)).
This is primarily intended for use in formulae given to the nls
function or similar functions for example mle2
.
Krzysztof Trajkowski
Goryl A., Jedrzejczyk Z., Kukula K. (Eds.), Osiewalski J., Walkosz A. (2004) "Wprowadzenie do ekonometrii w przykladach i zadaniach", Wydawnictwo Naukowe PWN, Warszawa.
Borkowski B., Dudek H., Szczesny W. (2004) "Ekonometria. Wybrane zagadnienia" , Wydawnictwo Naukowe PWN, Warszawa.
selfStart
, getInitial
x <- 1:20
y <- 5.75*x^(0.75+0.95*log(x))
model <- nls(y ~ SSparLog(x,a,b,c),algorithm = "port")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.