Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: FW: Adding a scalar to a graph note


From   Oliver Jones <ojones@wiwi.uni-bielefeld.de>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: FW: Adding a scalar to a graph note
Date   Tue, 14 Jun 2011 13:43:33 +0200

Hi
I am not sure but I guess you first have to store the result in a local and then
include the local in your graph.

Here is an example of what I mean


********* begin example ************
clear all

set obs 10
gen n = _n
gen u = rnormal()

scalar something = 123

local result = something

scatter u n, note(`result')
********* end example ************


Best
Oliver

Am 14.06.2011 13:34, schrieb Barry Quinn:

Hi,

Is it possible to add a scalar which has been created from the results of a test ( in my case it's a ranksum test) into the note of a graph using some Stata code ?

Thanks


Barry Quinn
Lecturer in Finance

Queens University Belfast              Tel: 028 9097 1366
25 University Square                       www.qub.ac.uk/mgt
Belfast                                             www.barryquinn.com
Northern Ireland                              b.quinn@qub.ac.uk
BT7 1NN


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

--
Universität Bielefeld
Fakultät für Wirtschaftswissenschaften
Lehrstuhl für Ökonometrie und Statistik
- -
Bielefeld University
Faculty of Business Administration and Economics
Chair of Econometrics and Statistics
- -
Raum / room:  V9-110
Tel / phone:  +49 (0)521 106 4871
---
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index