Re: [R] Kindly help

2022-06-30 Thread pikappa.devel
Maybe you could have a look at package markets (disclosure, I am the
maintainer). 

I am not exactly sure how you would like to estimate the shocks. If you have
an identifying shock variable or you can use a pre-post dummy variable, you
could check the estimated coefficient of the variable when used in the
demand and supply equations. Otherwise, if you do not have such a variable,
maybe you could check the residuals of the demand and supply equations.

Kind regards,
Pantelis

-Original Message-
From: R-help  On Behalf Of Muhammad Zubair
Chishti
Sent: Thursday, June 30, 2022 8:15 AM
To: r-help@r-project.org
Subject: [R] Kindly help

Dear Experts,
I hope that you are doing well. Kindly help me how to estimate demand and
supply shocks of oil prices in R?

Regards
Muhammad Zubair Chishti

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] How to solve this?

2022-09-01 Thread pikappa.devel
Hi Zakaria,

I had such an issue before, and in my case, the problem was that the 
calculation of the objective for some values used by the optimizer gave back a 
non-finite result. In general, this might be because the objective function has 
poles, and the calculation returns inf. Alternatively, there might be a 
calculation error somewhere in the objective function's code resulting in a nan 
value. I think that first, you need to determine more precisely what the 
problem is in your case. You could try evaluating the objective at different 
points (for instance, your initialization values) to see how it behaves.

I hope this helps!
Pantelis

-Original Message-
From: R-help  On Behalf Of SITI AISYAH ZAKARIA
Sent: Thursday, September 1, 2022 5:22 AM
To: r-help mailing list 
Subject: [R] How to solve this?

Hi everyone,

Can some one help me?

If my coding come out the error like this "Error in optim(start, nhl, ..., 
method = method) : non-finite value supplied by optim". What it means?
How can I solve this?

Thank you.

-- 





"..Millions of trees are used to make papers, only to be thrown away after a 
couple of minutes reading from them. Our planet is at stake. Please be 
considerate. THINK TWICE BEFORE PRINTING THIS.."

DISCLAIMER: This email \ and any files transmitte...{{dr...{{dropped:9}}

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.