1.

_________ require you to pass a function whose argument is a vector of parameters.(a) optimize()(b) optimise()(c) opt()(d) opm()I had been asked this question in final exam.This intriguing question comes from Scoping Rules in portion Control Structures, Functions, Scoping Rules, Loop Functions and Debugging of R Programming

Answer»

Right OPTION is (c) opt()

EASY EXPLANATION: Optimization routines in R like optim(), nlm(), and optimize() require you to pass a FUNCTION.



Discussion

No Comment Found

Related InterviewSolutions