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
Four period aggregated returnDear Statalist forum, I have quarterly data (Year_Quarter) from 1965 until 2020 and I want to gener…
Calculating weekly return volatility from weekly return dataSir What could be code for calculating weekly return volatility(Volatility) from weekly return data(…
How to identify variable in various rows index_admit patient_id afib newafib varnewafib 1 001 0 0 1 0 001 1 1 0 0 001 1 0 0 0 001 …
Simulating data for non linear regressionI wish to model a function with the nl command: Code: nl (Y = {b1}*X2^{b2}*X3^{b3}) or Code: nl (l…
Hansen-J-Test InterpretationDear Statalists I am actually doing a IV regression with one single endogenous regressior (penetrat…
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