Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Inputting a scalar in a new dataset

    I would like to make a dataset by inserting the pre-defined scalar values.

    Suppose I have scalar s as follows:

    scalar s=3
    When I make the following dataset, Stata can not read the numerical value of s.

    input str2 coef b
    "post" s
    "tax" 2
    end
    Is there a way to input 3 as the value of s in this dataset?

    Thanks
Working...
X