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
Problems with Nesting in Panel Regression "panels are not nested within clusters"Hi, I am not sure how to overcome this error message I am receiving "panels are not nested within c…
How to compare prognostic models with a survivaldecision curve analysis for survival outcomes?Hello, i am currently using the dca (stdca) command in stata 14.0 I research a dataset of patients w…
problema with local extended_fcn local list : dir . files "*"Hello everyone. this is my first post in Statalist, so please forgive any mistake on it. I'm tryin…
Replace missing observations in VAR1 with observations from VAR2 fDear forum, I am trying to replace the missing observation(s) in ExportMarkets with the value in Mi…
Exporting underlying data behind stata generated graphsHi, i was able to export the underlying data behind a graph i created using a dataset (below) but wh…
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