Hello everyone,
Is there any way to use pcarrowi command dynamically? I'm trying to find a way to insert arrows into several plots to indicate the changes in the values of some variables across time. For example, I'd like to draw an arrow between the predicted values for group 1 and group 2, pre and post trial, in the graph below (not quite in a finalized format, but just an example for the moment)
. Array
I have the values of the predicted values via matrix r(b), but these values do not seem to be compatible with addplot command. For example, if I were to insert either addplot(pcarrowi 0 k[1,1] 0 k[1,2]) or addplot(pcarrowi 0 scalar(a) 0 scalar(b)) (after defining scalars as suitable values of the matrix), I get error message "invalid point." Is there any way to dynamically use addplot (specifically pcarrowi) with scalars/matrix cells, rather than specific values?
Thank you!
Related Posts with Using pcarrowi dyanmically?
Interpreting coefficientsPlease can someone explain to me the meaning of the coefficients for this random effects GLS regress…
For loop in StataHi, I want to loop over 150 variables, which has the format like code_001, code_002, ....., code_150…
label & then encode - Assigning 2 or more values to same numberI have the following string variable that has 60 unique values. I want to assign Bureau Veritas Cert…
Generating a rate variable (number of events per year) using date and string variablesDear Statalist, I want to create a variable giving rate of exacerbations per year for each individu…
Adding highly correlated explanatory variablesHello, do we add explanatory variables that are highly correlated with the other explanatory variabl…
Subscribe to:
Post Comments (Atom)
0 Response to Using pcarrowi dyanmically?
Post a Comment