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
Assigning dates and days of week in a long datasetHello, I have a long dataset with observations that represent all of the days that a person was enr…
Difference between the two options under model two tab for three stage least squares?In stata after going to statistics-->endogenous covariates ---> Three stage least squares and …
iterations - stteffects ipwraHello, I am attempting to the stteffects ipwra in order to study the effect of drug1 on time to deat…
Propensity Score with TEFFECTS / IPWRA: is it possible to create a bar graph showing covariate balancing?In looking through the TEFFECTS help files & PDF manual, I do see that a graph of individual cov…
Creating IRF plots after ARIMAHello, For reasons I cannot figure out, I am able to create IRF plots after an ARIMA regression usi…
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