I'm new to Stata and am trying to write a simple routine that uses a
distribution function to create a statistic.
I thought this would be incredibly simple, but I've been unable to
create/initialize a simple set of parameter estimates in the routine
without putting them in a single line raw data file and reading that
file into Stata.
For instance I've tried:
. gen param1=.05
. display param1
and that produces (at least displays) a zero value instead of .05.
Then I tried:
. local param1=.05
. display param1
but that also produces (at least displays) an incorrect result.
What version of Stata? Here is what I get using 9.1: