简体   繁体   English

R中任意函数的参数估计

[英]Parameter estimation of arbitrary function in R

I have a linear but complex function in R, let's say 我说R中有一个线性但复杂的函数

estimate.value <- function(x, y, z)

Now I have an output value and I want to estimate the input parameters one or two at a time. 现在我有一个输出值,我想一次估计一个或两个输入参数。 How do I do that? 我怎么做?

eg I know that output value is 5 and and x=2, y=3 then how do I estimate z ? 例如,我知道输出值为5且x = 2,y = 3那么我如何估计z or I know output value is 5 and only know x=2, how do I estimate x and y ? 或者我知道输出值为5并且仅知道x = 2,如何估算x和y

Your question essentially relates to inverting a function. 您的问题本质上与功能反转有关。 You could do this by employing root-finding. 您可以通过使用root-finding查找。 Look here for an answer on SO regarding this. 在这里寻找关于此的答案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM