Hi everyone. I am new to this site so please bear with me.
I am running a regression of property value against several house characteristics such as the number of bedrooms, bathrooms etc. One of the variables is 'propertysize'.
When collecting data for 'propertysize', some observations had a numerical value available in metres squared such as '100' whilst some observations had no number available so I had to estimate whether the property was 'small', 'medium', or 'large'. I collected all observations under the same variable 'propertysize'.
I want to run several regressions.
a) a regression where 'propertysize' only includes the numbers, thus removing my estimates
b) a regression where 'propertysize' only includes the original 'small', 'medium' and 'large' estimates I made, thus removing the numerical data
c) a regression where the numerical values are transformed to one of the size categories 'small', 'medium' and 'large'. So between the size of 0-65 metres squared a property is classed as 'small', 65-100 is 'medium', and >100 is 'large'. These transformed numbers would then be in the same format as my estimates and a regression would be run on the categories.
I have been succesfsul in part a).
However, I cannot find a method to work b) or c).
Related Posts with Dealing with a variable that has both numeric and categorical observations
Ordinal regression with random factorsI'm try to run an ordinal regression with random factors. I'm using the meologit command. My depende…
mplotoffset legend symbolsI want to generate a plot using mplotoffset with a legend that includes line segments and symbols. T…
When choosing between random and fixed effects models for logistic regressionI understand the assumption for using a random effects model is that the unobserved group-level effe…
error correction model with rolling regressionHello. I am trying to do error correction model with rolling regression. here. I want to change the …
overlaying two hazard rate plotsDear All, Suppose that I compute the following hazard rates (unfortunately I cannot share the real d…
Subscribe to:
Post Comments (Atom)
0 Response to Dealing with a variable that has both numeric and categorical observations
Post a Comment