. gen temp = X / ('beta1'*X + 'beta2') 'beta1' invalid name
时间: 2023-12-25 09:03:00 浏览: 57
config.sub Invalid configuration machine/OS not recognized问题解决
The error message "invalid name" suggests that 'beta1' is not a valid variable name in your dataset. Make sure that 'beta1' is defined as a variable in your dataset or replace it with an actual value. Also, make sure that the variable 'X' is defined and has non-zero values to avoid dividing by zero. Here's an example of how you can fix the code:
```
gen temp = X / (beta1*X + beta2)
```
Replace 'beta1' and 'beta2' with actual values or variables that exist in your dataset.
阅读全文