可以使用
generate()
选择
lpoly
webuse motorcycle, clear
lpoly accel time, generate(x y)
这些值存储在
y
和
x
变量(此处显示第一个
10
list y x in 1/10
+------------------------+
| y x |
|------------------------|
1. | -1.6245329 2.4000001 |
2. | -1.775922 3.5265307 |
3. | -1.9832878 4.6530613 |
4. | -2.2217888 5.7795918 |
5. | -2.3814197 6.9061224 |
|------------------------|
6. | -2.5199665 8.032653 |
7. | -3.3919962 9.1591836 |
8. | -8.8572222 10.285714 |
9. | -16.957709 11.412245 |
10. | -26.693355 12.538775 |
+------------------------+
如果绘制这两个变量,可以看出情况确实如此:
twoway line y x