Hey statatlist,
I am working on a panel-dataset with footballplayers and their performance for each season.
Besides that I also have a dummy-variable which is 1 if the footballplayer gets sold the particular season.
Now what I could really need some support with:
1. I want to generate a variable that is a prediction of the performance after a transfer. I am using a fixed effect model to measure the effect of sold=1, and now I want the predicted performance after sold=1, if that makes sense?
2. I want to generate a dummy variable that is 1 if the performance for the particular season after the transfer is below the predicted performance and 0 if the performance is above the predicted performance.
I have the following variables:
SeasonID: Ranging from 1-6 (since I am working with up to 6 seasons per player)
PlayerID: Name of the player
Year: The season of interest (2011/2012, 2012/2013, etc.)
Sold: Dummy variable -> 1 if sold 0 if not
Performance: Performance-measure for each player per season
This is my first post, so if you need some sort of summary of my data please let me know.
Best regards,
Martin
Related Posts with Generating variables for probit model
Congratulations to Nick Cox for reaching 20,000 postsAs is customary in this list, we send congratulatory messages to users who reach milestones. So cong…
Create a loop for regressionsGood morning everybody, I have a dataset with 150 variables and I would like to create a loop to pe…
How to set the hazard rate to zero in hshaz?Hi everyone, I am trying to estimate the impact of a hiring subsidy on the survival rate of employe…
Missing Eigenvalues and EigenvectorDear Statalisters, I'm puzzled by a square matrix for which all eigenvalues and eigenvectors relate…
Panel data analysis using xtabond2I have got the following result. is that okay Array Please help me. …
Subscribe to:
Post Comments (Atom)
0 Response to Generating variables for probit model
Post a Comment