optimize Function in R (Example) | One Dimensional Optimization | Plot User-Defined Function Curve

Published: 22 January 2022
on channel: Statistics Globe
3,905
62

How to perform a one dimensional optimization using the optimize() function in the R programming language. More details: https://statisticsglobe.com/optimize-...
R code of this video:

my_function <- function(x) { # Create function
x^3 + 2 * x^2 - 10 * x
}

plot(my_function, xlim = c(- 1, 3)) # Draw function curve

optimize(my_function, # Apply optimize
interval = c(- 1, 3))

Follow me on Social Media:
Facebook – Statistics Globe Page:   / statisticsglobecom  
Facebook – Group for Discussions & Questions:   / statisticsglobe  
LinkedIn – Statistics Globe Page:   / statisticsglobe  
LinkedIn – Group for Discussions & Questions:   / 12555223  
Twitter:   / joachimschork  

Music by bensound.com


Watch video optimize Function in R (Example) | One Dimensional Optimization | Plot User-Defined Function Curve online without registration, duration hours minute second in high quality. This video was added by user Statistics Globe 22 January 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 3,905 once and liked it 62 people.