nonlinear functions - R: Using equation with natural logarithm in nls -



nonlinear functions - R: Using equation with natural logarithm in nls -

good day,

i struggling r , natural logarithm (ln). firstly, cannot find ln(x) function in r. have noticed log(x) same ln(x) (when using ln(x) calculator).

in r:

log(5) = 1.609438

and calculator:

ln(5) = 1.609438 log(5) = 0.69897

i'm trying fit equation in r (this how found in literature of 3 references):

y = + b(x/305) + c(x/305)2 + d ln(305/x) + f ln2(305/x)

is right utilize next syntax in r utilize equation?

y ~ + b*(x/305) + c*((x/305)^2) + d*log(305/x) + f*(log(305/x))^2

the thought utilize function nls() in r. in advance!

in r, log natural logarithm. in calculators, log means base of operations 10 logarithm. accomplish in r can utilize log10 function.

log(5) ## [1] 1.609438 log10 ## [1] 0.69897(5)

as formula, seems correct, since log natural logarithm.

r nonlinear-functions natural-logarithm

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -