Hello.
I have a question regarding a variable I have constructed. For a number of countries, I have multiple observations for each country.
The thing is that I have a dichotomous variable (it can only take value 0 or 1) for each such observation. From this, for each country, I have created a variable that shows the percentage of observations (within the country), in which the dichotomous variable takes value 1.
Example: I have a country A with 24 observations for that country. Of those 24 observations, in the dichotomous variable X, 13 observations take value 1 and the rest 0. Therefore, my constructed variable, Y, for country A would take value 51.166%.
My question is, is that variable Y discrete or continuous? Could I estimate by OLS if the dependent variable is Y?
Thanks for your attention!
Related Posts with Continuous or discrete variable?
Loop missingness at randomHi everyone, I'm trying to check whether my missing values are missing at random. I have 24 variabl…
Dropping Variables Based on Condition and in a LoopHello I need help learning how to drop a variable if one or more observations are greater than a num…
Request for second-opinion on Stata code and suggestion on how to see AAR per day (with t-stat)Second-opinion on Stata-code and request for suggestions on how to see AAR per day Hi all, Thank…
Creating subsets from appended databaseI am interested in creating subsets from the appended dataset using uniquely identified ID. An examp…
Proportion VariableHello Statalisters, I have a dataset where I am trying to calculate the proportion variable represe…
Subscribe to:
Post Comments (Atom)
0 Response to Continuous or discrete variable?
Post a Comment