Quantcast
Channel: EViews
Viewing all 24085 articles
Browse latest View live

imputing missing data in panel/pooled dataset

$
0
0
Hi Glenn and Gareth,

Thanks you so much for your answers! They are exactly what I want!

I have a follow-up on it:

For (2), I agree with your point and I will think more about the implementation I want if modes are not unique. But assume that mode are unique, is there a function to pull the mode? something I imagine like @modeby(y,@crossid)?

Please advise.

Again, you guys are awesome!

Best,
BC



imputing missing data in panel/pooled dataset

$
0
0
No. EViews doesn't offer a mode function because the return type would have to be (in general) a vector. And then you couldn't do the @modesby since that has to feed into a series.

There's certainly a way to get at this via programming, but it's not quite as simple as the examples we gave above.


Estimating translog cost function

$
0
0
Hi everyone: so i am trying to calculate the translong cost function in order to obtain marginal cost for a Lerner Index. However, I am struggling with the interpreting of the function itself into eviews. I have attached a word document of my translog function and all the variables.
Any help at all would be appreciated.


State space results differ

$
0
0
A fix will appear in the next patch for both 9.5 and 10. Thanks for helping us locate the problem and sorry again for the inconvenience.


Estimating translog cost function

$
0
0
ln(total_bank_cost)=c+c(2)*(total_earnings_assets)*ln(total_earnings_assets)+c(3)*.5*(total_earnings_assets)*ln(total_earnings_assets)^2+c(4)*wd_price_of_deposits_*ln(wd_price_of_deposits_)+c(5)*wk_price_of_physical_cap)*ln(wk_price_of_physical_cap)+c(6)*wl_price_of_labour_*ln(wl_price_of_labour_)+ln(total_earnings_assets)*ln(wd_price_of_deposits_)+ln(total_earnings_assets)*ln(wl_price_of_labour_)+ln(total_earnings_assets)*ln(wk_price_of_physical_cap)+ln(wd_price_of_deposits_)*ln(wk_price_of_physical_cap)+ln(wd_price_of_deposits_)*ln(wl_price_of_labour_)+ln(wk_price_of_physical_cap)*ln(wd_price_of_deposits_)+ln(wk_price_of_physical_cap)*ln(wl_price_of_labour_)+ln(wl_price_of_labour_)*ln(wd_price_of_deposits_)+ln(wl_price_of_labour_)*ln(wk_price_of_physical_cap)+ln(wl_price_of_labour_)^2+ln(wd_price_of_deposits_)^2+ln(wk_price_of_physical_cap)^2
would this be correct?


Estimating translog cost function

Data import via Macrobond database

$
0
0
Also, refreshing a series in a workfile does not automatically resize the workfile if the linked series at the source now has more data outside the workfile's current range. Use PAGESTRUCT to resize your workfile and also look at the arguments in the linked import command to see if a sample range has been specified.


Sent from my iPhone using Tapatalk


Data import via Macrobond database

$
0
0
Thank you Jason and Steve for your replies. I managed to refresh everything after inputting pagestruct. Thanks very much again!



Subroutine time-shifting a sample object

$
0
0
Final correction
Error corrected: the sample object "s1" in the code of the subroutine "shiftsmpl" was corrected to "s", in line with the sample object "s" provided as an argument to the subroutine.

Best,
mamo

Code:

'Example of using shiftsmpl
'Create wf
wfcreate q 2000Q1 2016Q4
'Create an indicator variable
series indicator=nrnd>0
'Defining sample s1
sample sampl1 2002Q1 2010Q4 if indicator=1
'Set the current page sample to s1
smpl s1
'change the sample s1 by shifting its lower bound by 2 quarters forward and the upper bond by 1 quarter backward
'and set the current page sample to the revised sample s1, ie to "2002Q3 2010Q3 if indicator=1"
call shiftsmpl(s1,2,-1,1)


subroutine shiftsmpl(sample s, scalar !n1, scalar !n2, scalar !setsmpl)
'**********************************************************************************************************
' Does: shifts the time frame of the sample object s, and optionally changes the current sample
' to the revised sample s
' s: sample, sample object
' !n1: integer, shift of lower time boundary
' !n2: integer, shift of upper time boundary
' !setsmpl: integer, indicating if the current sample should be changed to
'            the shifted sample s (!setsmpl>0) or not (!setsmpl<=0)
' Error handling: Program stops with an error message when an inconsistent pair of period definitions is encountered
' (i.e., lower boundary > upper boundary
' Sideeffects: a text object named "_$stext" is created and deleted.
' Notes: "if"-clauses in the definition of s are preserved
'             The shifting is in terms of the freqency of the current workpage
' The shift parameters !n1 and !n2 are applied pairwise to each pair of period definitions in s
' !n1 and !n2 can obtain positive (forward shift) or negative values (backward shift)
' Created: 06/2017
'**********************************************************************************************************
    %stxt="_$stext"
    ' Read sample definition into string %sstr
    freeze(mode=overwrite, {%stxt}) s.spec
    %sstr=@stripquotes(@trim(@wjoin({%stxt}.@svector)))
    'delete the temporary text object
    delete {%stxt}
    ' Seperate out the "if"-clause into string %if (if there is any)
    if @instr(@trim(%sstr),"if") then
        %if=@trim(@right(%sstr, @len(%sstr)+1-@instr(@trim(%sstr),"if")))
        %sstr=@trim(@left(%sstr, @instr(@trim(%sstr),"if")-1))
    else
        %if=""
    endif
    ' count the number of period boundaries (must be even number)
    !n=@wcount(%sstr)
    ' apply pairwise period shifts n1 and n2
    %ddef=""
    for !i=1 to !n
        !j=2-@floor(@mod(!i,2))
        %d=@word(%sstr,1)
        %sstr=@trim(@wdrop(%sstr, %d))
        %d=@datestr(@dateadd(@dateval(%d),!n{!j}, @pagefreq))
        'check if the current period pair confirms with lower boundary <= upper boundary
        if !j=2 then
            %dprev=@word(%ddef, !i-1)
            if @datediff(@dateval(%d), @dateval(%dprev), @pagefreq) < 0 then
                'stop if the recent pair of periods is not confirming with lower boundary <= upper boundary
                @uiprompt("Error in shiftsmpl - inconsistent sample definition: "+%d+"<"+%dprev, "O")
                return
            endif
        endif
        %ddef=%ddef+%d+" "
    next
    %ddef=@trim(%ddef)
    're-set the sample to the shifted period definitions
    s.set {%ddef} {%if}
    'adjust workfile sample to the revised sample if so requested
    if !setsmpl then
        smpl s
    endif
endsub






Panel Least Squares estimation method Nonlinear optimization algorithm

$
0
0
When I try to add the spec via word, error parsing server response is given. So pasting it in text below sorry for the messy look.

ln⁡〖y_it 〗={(1⁡〖-e^(-βt) 〗 )α(1-θ) ln⁡〖s_it 〗+(1⁡〖-e^(-βt) 〗 )β1 ln⁡〖L_it 〗+(1⁡〖-e^(-βt) 〗 )ϕ ln⁡〖〖FI〗_it 〗+(1⁡〖-e^(-βt) 〗 )ln[γ+(1-α)β1n_it ]+(1⁡〖-e^(-βt) 〗 )α(1-θ) ln⁡[(n_it+δ)+β1n_it ] }+e^(-βt) ln⁡〖y_(it-1) 〗+u_it


Rolling Cointegration

$
0
0
Then why it breaks out the code after 1100 replications, when normally it should perform 3657 replications. However, I've noticed that the break it varies if I change either number of variables or size of rolling window. Any support is more than welcome!


mixed graph, panel data: crashing when pressing on "options" buttom

$
0
0
Hi there,

I'm using EViews 9.5.

I have panel-structured data. EViews crashes when doing "mixed" graphs using individual cross-sections and pressing on the options button. This does not happen when using a simple "line" graph.

Best regards.


Rolling Cointegration

$
0
0
Your data probably results in a singular matrix.


mixed graph, panel data: crashing when pressing on "options" buttom

$
0
0
It will be fixed in the next patch


Average Cross-sectional Regression in Panel Data Structure

$
0
0
Hi,
I have a panel data with N=40, T=50.
I want to estimate the following models. What is the syntax?
1. For each country
2. For each year
3. Take average across T for each N. So, i will have 40 observations. Then i want to run a cross-section regression
4. Take average (for entire period) across N for each T. So, I will have 50 observations - one for each year. I want to estimate a time series model.
5. Same as #4, but the averaging is for sub-samples like 1950-1970, 1971-1995.

Highly appreciate your help.
Thank you.



Panel Least Squares estimation method Nonlinear optimization algorithm

$
0
0
What is it that you put into EViews?


State Space Modeling

DCCGARCH11

$
0
0
The latest Eviews 10 patch broke the functionality of this toolbox. When I try to run an estimation, now Eviews crashes. Does anyone else have this issue?


Panel Least Squares estimation method Nonlinear optimization algorithm

$
0
0
nls object within the attached wf has the specification.
a valid starting point for c vector is : 0.010000    0.200000    0.200000    0.000000    0.400000
best regards


Forecast averaging

$
0
0
Hi, I'm having some difficulty with the forecast averaging option. I am attaching my file with the example. I estimate my equation, and use the forecast proc attached to the equation to create a static forecast, and the output looks very sensible. (jpn_yegf and eq_forecast_proc). I then select my forecast variable (jpn_yerg) and use the forecast averaging proc, to run what I thought would be exactly the same procedure - selecting the equation _now_jpn_yer_q as the only equation object - and run a static forecast over the same sample period. The results are crazy this time (jpn_yerg_fave and forecast_ave_output). Please can you help me figure out what I'm doing wrong? Some other equations I've tested seem to work fine, so maybe it is something particular to the data? Many thanks for suggestions!
Dawn
(I am working with eviews 9.5)


Viewing all 24085 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>