Page 1 of 1

Four-level CCM, variance components

Posted: Wed Oct 30, 2019 6:35 pm
by dand1994
Hello.

I am attempting to put together a four-level CCM using the runmlwin command. As shown below, the "firm" at level 3 is nested within home countries at level 4, while the host country and industry are cross-nested.

Outcome
  • LEVEL 1: Year
  • LEVEL 2: Unit
  • LEVEL 3: Host country, Industry, Firm
  • LEVEL 4: Home country
It would look something like this:
  • Level 1: ROAyshipm = β0shipm + eyshipm
  • Level 2: β0shipm = β00hipm + r0shipm
  • Level 3: β00hipm = β000m + b00h + c00i + d00p
  • Level 4: β000m = 𝛾000 + e000m
Any help with putting this into Stata?

Re: Four-level CCM, variance components

Posted: Mon Nov 11, 2019 3:26 pm
by ChrisCharlton
You can find examples that replicate the MLwiN manuals using runmlwin at https://www.bristol.ac.uk/cmm/software/ ... /examples/. I would suggest looking at the example for Chapter 15 of the MCMC guide, as this covers setting up cross-classified models.

Re: Four-level CCM, variance components

Posted: Wed Dec 04, 2019 10:00 pm
by dand1994
ChrisCharlton wrote: Mon Nov 11, 2019 3:26 pm You can find examples that replicate the MLwiN manuals using runmlwin at https://www.bristol.ac.uk/cmm/software/ ... /examples/. I would suggest looking at the example for Chapter 15 of the MCMC guide, as this covers setting up cross-classified models.
Unfortunately, however, the examples provided are not directly relatable due to the complexity of my model. Could you perhaps shed a bit more light on running the model (e.g., runmlwin command)? I am attaching a picture showing the data structure.

I have used: runmlwin s_roa cons, level6(home : cons) level5(firm: cons) level4(industry: cons) level3(host: cons) level2(unit: cons) level1(year: cons) mcmc(cc) initsprevious nopause, although I do not believe it to be forrect

Image

Re: Four-level CCM, variance components

Posted: Fri Dec 06, 2019 3:59 pm
by GeorgeLeckie
Dear dand1994,

"I have used: runmlwin s_roa cons, level6(home : cons) level5(firm: cons) level4(industry: cons) level3(host: cons) level2(unit: cons) level1(year: cons) mcmc(cc) initsprevious nopause, although I do not believe it to be forrect"

What you have written is correct for a cross-classified model

Once you specify mcmc(cc), the ordering of the levels is irrelevant.

I hope that helps

George