When I launch Stata15 and run the following:
clear all
drop _all
gen f2 = 3
gen p2 = normal(f2)
display f2
display p2
I get f2 as 0, and p2 as 0.
Then, when I run some other do file, and then run the above code again, I get f2 as -.131511419 and p2 as 1.036654.
Why is it that when I write display f2 that it doesn't display 3, and when I write display p2 that it doesn't display 0.9987ish?
Related Posts with New to Stata. Haven't seen this before. Please help.
Change values within groups based on conditionsDear All, I have a dataset with group ID, individual ID, age, and sex of the individuals, as well a…
Rearrange panel data in STATADear all, I have several datasets I would like to merge, however, they are set up differently. What…
Printing out balance tableEDIT: Formatting of tables and code in this post got messed up. View my post below to see correct fo…
Group-wise value assignmentHello Statalist, I hope everyone is fine. In my event study, I have event variable (EV) contain 110…
line breaks in command -global-Dear all,How can I break line in the command -global-.I use "///" ,but I get error.My codes in dofil…
Subscribe to:
Post Comments (Atom)
0 Response to New to Stata. Haven't seen this before. Please help.
Post a Comment