Bel Hadj]]>

I'd appreciate a lot some advice on the following. I'm running an ordinal logit regression, where my dependent variable is marks obtained in a test (fail, pass, merit, and distinction) and my independent variables are all categorical with more than two categories (public school, private school, mixed school; the level of education of parents; socio-economic status). I'm very interested in learning about the effect that each level of my categorical independent variables have over my variable of interest. As such, I have added the "i." command to obtain a disaggregated analysis in my regression. I' concerned on:

1) How to make sure that my interpretation of the ologit model takes into account the ommited category for every categorical variable that is analysed with "i.". For example, do I have to specify that every interpretation for high socio economic status is taking into account that my base category is low ses (assuming that my base category is SES)? or is it not necessary? I have the same concern when interpreting the predicted marginal effects for those variables. Do I have to consider each variable's probability accounting for its base category?

2) I am not quite sure that I am interpreting my marginal effects correctly. Can they be analysed as percentages? For example, if I have a -0.033 coefficient for the "x" dummy variable in my outcome 1, which is Failing the test. Would it be right to say that an individual with "x" has 3% less likelihood of failing the test?

3) Also in regards of point 3, should I just analyse the marginal effects of variables that are statistically significant on my ologit model?

4) Last, but not least, how fair would it be to make a "robust check" of my model by running a logit regression on the probabilities of failing or passing the test? Meaning that, I would not look at the variation of grades, but only to a fail or pass the test scenario. This was not my first model, because I believe it is rich to see the variation of grades, but not sure if it could be used as a backup model to double check my first model's results.

Thanks a lot for your help in advance.

Best wishes

S]]>

We have, essentially, nine factors repeated two times which we would like to measure. If anyone can give me a dumbed down explanation on how I need to organize my data and which commands to run to do this, I would appreciate it. Additionally, if a repeated measures MANOVA is not the test we want to answer this question (is there significant interaction between the pre and post Test 1 and Test 2 data?), I would also like to hear advise on that.

I have been looking at this tutorial for help http://www.stata.com/manuals14/mvman...peatedmeasures but am unsure how to apply this method to my data, or if doing so is even reasonable.

Where this example states at the beginning "here is data on five subjects, each of whom took 3 tests" I assume mine would instead say "here is data on 62 subjects, each of whom took 18 tests". (the data is organized to fit that format, at least.)

Can anyone provide some guidance?

]]>

Code:

mata c = -y, rangen(0, 0, N)', N, N-1 polyroots(c) end

please suggest me alternative or more appropriate equation if it there]]>

I am a new user, looking for calculating ratio from a large dataset conditional upon ‘Reporter’, ‘Partner’, ‘Year’ and ‘TradeFlow’. My data is organised in the following way:

Reporter | Product | Partner | Year | TradeFlowName | TradeFlowCode | TradeValue | TradeValue |

AUS | 2709 | IND | 2011 | Export | 6 | 50 | A |

IND | 2709 | AUS | 2011 | Import | 5 | 65 | B |

IND | 2709 | AUS | 2011 | Export | 6 | 100 | C |

AUS | 2709 | IND | 2011 | Import | 5 | 115 | D |

Ratio= A/B, conditional upon specific Reporter’, ‘Partner’, ‘Year’ and ‘TradeFlow’ [here, A=50 and B=65]

I am using Stata Version SE 14.2

As a new user I searched a lot but could not solved the problem.

If any of you kindly help me how to write the command, will be much helpful.

Thank you!

Kind Regards, Farhad

]]>

as I am a new user, I am not used to the syntax used in this forum. Though, please be patient if I do not provide the required information.

I am using Stata Version 13.1 for Mac and striving to merge two datasets.

Unfortunately, the content within the cells of the merged file, differs from the content of the original dataset.

Example 1:

Original dataset: ret_mkt at 01mar2005:

Merged dataset: ret_mkt at 01mar2005:

Example 2:

Original dataset: open_mkt at 01mar2005:

Merged dataset: open_mkt at 01mar2005:

I used the following commands:

use "/Users/juliacatharinajensen/Documents/Paderborn/Daten/20170308 stockdata3.dta"

sort country_id date

save, replace

merge m:1 country_id date using test, update

sort _merge

browse

Do you have any advice for me? I already searched within the old posts and studied the help site, but I was not able to solve the problem. Thank you!

Regards, Julia

]]>