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
Cutting all but the first two digits of a numeric variable of varying lengthHello, I have a numeric variable with values of varying lengths. I would like to cut all but the fi…
Sort Means of Multiple VariablesHi! I have what I hope is a pretty easy question to answer for the pros out there that I have been u…
building groupsDear All, According to Code: . webuse grunfeld, clear . sum invest Variable | Obs …
Creating individual-level variables representing the characteristics of co-resident persons (e.g. age of mother)Hello. I am using CPS data and am trying to transform the data using the household id number, the li…
Surpress insig2u in regression outputWhen I illustrate my Regression Output: ------------------------------------------------------------…
Subscribe to:
Post Comments (Atom)
0 Response to Out of sample tests with conditional logistic regression
Post a Comment