I want to analyze the prices of properties depending on the location but *without considering their size*. The location can be "excellent", "good", "average", "bad". I want to create 4 boxplots comparing the prices in the locations. The size is given as a number.

In R I could write:

```
boxplot(price~location, data=mydata)
```

which wouldn't be correct because the price obviously also depends on how big the property is, so I could write instead:

```
boxplot(price/size~location, data=mydata)
```

But my task is to not have the size in my formula and to normalize the price in another way which is supposed to be better. Does anyone know how to do that?

The statement "without considering their size" may mean different things and therefore different answers are possible.

The first meaning is just not taking size in account. That is:

```
boxplot(price~location, data=mydata)
```

Of course, price depends on a lot of variables different than location, including size and many more. The effect of those variables affect response in two ways:

(to be expanded)

April 15, 2019 11:16 AM

- Serverfault Help
- Superuser Help
- Ubuntu Help
- Webapps Help
- Webmasters Help
- Programmers Help
- Dba Help
- Drupal Help
- Wordpress Help
- Magento Help
- Joomla Help
- Android Help
- Apple Help
- Game Help
- Gaming Help
- Blender Help
- Ux Help
- Cooking Help
- Photo Help
- Stats Help
- Math Help
- Diy Help
- Gis Help
- Tex Help
- Meta Help
- Electronics Help
- Stackoverflow Help
- Bitcoin Help
- Ethereum Help