I have a 16,000 data set with continuous dependant variables and an independent variable. I also have assigned for each observation one of about 100 distinct categories. I want to assign each category to zero or to a single non-zero value, identical across all non-zero assigned categories.
I could treat this as a non-linear optimisation problem with SSD as the objective function. But I feel sure there is a standard approach to regression/factor analysis that would address this problem.
This differs from standard factor analysis, as ex ante I don't know whether a given category will be zero or this (unknown) constant value. And if I set up the 100 categories as indicator variables and regress, they will all be assigned different values: not what I want. I am sure Stata can do this ......
Grateful for help
Jamie Hamilton
(PhD student)
Related Posts with Assigning one of two fixed values to each observation according to categories alongside continuous variables
Gravity model - HS6 product level - PPML and fixed effectsHi, For my Master's thesis I would like to estimate a gravity model using three specifications: Bil…
Transforming dataset with several variables and a 'value' variableDear all, I have a problem in Stata that I have been struggling with for quite some time now. As yo…
Frequencies of Multiple Variables in one Table(one way)Hello everyone, I have a problem concerning displaying frequencies of different variables in a tabl…
Rounding off or changing data type for household idHello This is a conceptual question. I have a dataset running into 6000 household ids some of which …
MI estimateI am having some issue in estimating MI estimate. I want to use order probit for my estimation. kind…
Subscribe to:
Post Comments (Atom)
0 Response to Assigning one of two fixed values to each observation according to categories alongside continuous variables
Post a Comment