I am trying to group a set of x variables by 10th percentiles, and then I have 11 numbers for the percentiles(one of them is zero so it may be omitted), now I'd like to use these 10 values to run a regression on variable y, where y is the mean of a certain percentile group.
How do I get my grouped variables, and how do I calculate their mean? Detailed step by step answers appreciated!
Much thanks in advance!
Related Posts with Group Variables by Percentile and Regress
Arrangement of Dataxtset firm_iden year, yearly panel variable: firm_iden (unbalanced) time variable: year, 2015 to 201…
Loss in life expectancy in period analysisHi everyone, I’m currently modelling loss in life expectancy of cervical cancer patients, with a fl…
Average % difference of prices between countriesDear Kollegues, i have a task, by which I kindly ask for your advice. A dataset consists of multipl…
Rwolf equivalent in R?I am looking for an equivalent R-package for 'rwolf' in Stata for multiple hypothesis correction. So…
adding values between two numbers for a consecutive seriesHi All: I would like to add values in between two numbers to generate a series of consecutive numbe…
Subscribe to:
Post Comments (Atom)
0 Response to Group Variables by Percentile and Regress
Post a Comment