Common computing issues in RStudio

1. Not using the new (recoded) variables in computation code

2. Computed variables are always continuous

When we compute variables and create an index, the new (computed) variable is continuous.

It becomes CONTINUOUS because we have created a score, and we treat it as a real number.

Therefore, we use the DESCR code to see the distribution (mean and standard deviation)

When we recode a continuous variable, the new (recoded) variable is no longer continuous.

It becomes CATEGORICAL because we have merged the real numbers, and they no longer remain as real numbers. Therefore, for example, we use the FRQ code to see the distribution.

3. Not using a model code

Use the Code templates page.

Last updated