Hi all,
This might be really simple question about out of sample tests, but still I couldn't find any help from youtube, so I try this. I briefly explain my context and then give you the exact question.
I want to investigate what factors contribute to the probability of a target to be taken over. For this I have two data sets, estimation sample which contains financial ratios for both targets and non-targets from 2001 to 2014. The second data set, prediction sample, is identical by structure, but it contain data from 2015 to 2018. Dependent variable is just a ''Target(1)/Non-target(0)''- dummy, whereas the financial ratios are independent variables. I use conditional logistic regression model as it is possibly to group targets and non-targets by year and industry.
So now I have ran some conditional logistic regressions for the estimation sample and decided what variables are incorporated in my conditional logistic regression model. Then now I should run this model with the prediction sample as out-of sample test. My goal is to test how well my model can classify targets from non-targets and non-targets from targets within the prediction sample. For example, conditional logistic model classifies 70% of target correctly and 60% of non-targets correctly.
To my question, how do I proceed with Stata now when I have constructed the conditional logistic regression model and have the prediction sample data in place for out of sample test. How do I get those probabilities?
I hope someone can help me.
Many thanks,
Max Immonen
Related Posts with Out of sample tests with conditional logistic regression
Saving file name as local valueDear Stata Professionals I am currently suffering from saving file name as local value The code I …
Identify All Values in One Variable that Satisfies a ConditionHi Statalist members, I encounter a difficulty in identifying values in one variable that satisfies…
How do I replace a certain value across a dataset that has string as well as numeric variables?Hi everyone, I'm working with a dataset that has hundreds of variables, numeric as well as strings.…
Interpreting psgraph ftaer psmatch2I am employing propensity score matching using community-contributed psmatch2 command. To check for …
besoin d'aide pour l'interprétation de résultats issus d'une régression logit binaire.Bonjour à tous. J'ai besoin d'une aide quant à l'interprétation de mes résultats issus d'une régress…
Subscribe to:
Post Comments (Atom)
0 Response to Out of sample tests with conditional logistic regression
Post a Comment