Hi Gareth,
many thanks for the tip. After having tried it, I see two somewhat disadvantages: first, it produced the eq representation as a part of the legend, standing left to chart; second, the actual variable names may be too long; and third, I'd need to get R2 in there anyway.
I think I best do by creating a piece of text myself which I could: [1] include in the chart area, [2] even export if wanted.
Having gotten the coeff estimates into a vector:
Code: Select all
coef(3) cfs
equation eq1.ls y = cfs(1) + cfs(2) * x
cfs(3) = @r2
I thought of sth like this:
Y = .dddd +- .dddd X, (R^2 .dd)
, however, I hit on difficulties with:
1. making the code to write the text in the text object
2. including the estimated cfs-s into the text
3. controlling the number of digits in the displayed cfs-s
4. formatting part of the text as italics.
Maybe I should not think of creating a text object, but rather something like a table object? I don't know, no experience with this at all. I would be enormously thankful for helping.