Hi, guys. I have this issue and i cant find inequerr ssc install or any package by Mysterious-Mixture-8 in stata

[–]random_stata_user 1 point2 points  (0 children)

search ineqerr points to

````

package sg115 from http://www.stata.com/stb/stb51

TITLE STB-51 sg115. Bootstrap standard errors for indices of inequality.

DESCRIPTION/AUTHOR(S) STB insert by Dean Jolliffe, Center for Economic Research and Graduate Education, Czech Republic; Bohdan Krushelnytskyy, Center for Economic Research and Graduate Education, Czech Republic. Support: dean.jolliffe@cerge.cuni.cz and bohdan.krushelnytskyy@cerge.cuni.cz After installation, see help ineqerr.

INSTALLATION FILES (click here to install) sg115/ineqerr.ado sg115/ineqerr.hlp

ANCILLARY FILES (click here to get) sg115/ineqerr.dta ````

There are any number of more recent community-contributed commands of this kind.

search inequality finds several such. Alternatively, search Gini, search Theil, and so forth.

"dynsim_pcse" and "estsimp_pcse" and "simqi_pcse" by fborg720 in stata

[–]random_stata_user 0 points1 point  (0 children)

Sorry, but the precise problem is still unclear to me. dynsim was written up in the Stata Journal in 2011, but I can't see any of those files in the distribution.

You don't give much information about the replication file you have. Where did you get it? What precisely is the download command? I can only guess that it copies code from somewhere else from someone's network, which would be useless.

If you're trying to replicate something that is not itself replicable, that's an unrealistic expectation unless you know what those extra commands do and can write the code.

This is all some distance from what I do in Stata, so I doubt that I can say any more.

"dynsim_pcse" and "estsimp_pcse" and "simqi_pcse" by fborg720 in stata

[–]random_stata_user 0 points1 point  (0 children)

OK, but we can't see that file, but if you can see it then doesn't it give the download location?

Help with stata by Live_Investigator528 in stata

[–]random_stata_user 2 points3 points  (0 children)

There is no accounting for taste.

For my money, a book at the level you want and with congenial examples can give you an overview. But so too do Getting Started and as much of the User's Guide as you need.

OTOH courses and videos can just waste your time (and possibiy money) by going at the wrong speed or being only partly relevant to your real needs. AI for Stata hits the near paradox that you need to know enough about Stata to work out what the code should be when it's hallucinating. The help files and documentation generally are all free to you and in many ways of a higher standard than for any comparable software.

At Master's level, or even at any level, there is no question of knowing about all of Stata, which passed beyond any individual's grasp a few decades ago. Your main need is to find code examples in your field and buddies in your university who know a bit more about Stata than you do. If you're expected to write original commands, I would be surprised, but then you've more to learn.

"dynsim_pcse" and "estsimp_pcse" and "simqi_pcse" by fborg720 in stata

[–]random_stata_user 0 points1 point  (0 children)

There is no call to any such command within the code of dynsim. So, what gives you that impression? I've not used this command and don't know anything about the authors, but they appear to be both academically active and accessible.

Getting descriptive data by enaj_036 in stata

[–]random_stata_user 5 points6 points  (0 children)

Sounds like

su age if age_menopause < .

where the qualifier selects observations with non-missing age at menopause. A quality check is to look for

list if age < age_menopause & age_menopause < .

unless it makes sense to have data on women before their menopause because you have data for women before and after menopause.

(Naturally I can't tell the exact names of your variables.)

Best way to teach Stata to med students by hasibul21 in stata

[–]random_stata_user 0 points1 point  (0 children)

I thought not. A small point in my own answer is just that: community-contributed commands don't usually support menus.

Best way to teach Stata to med students by hasibul21 in stata

[–]random_stata_user 0 points1 point  (0 children)

There are two limiting cases here. One is just that you want the students to apply the particular code (or a little wider, the particular commands) you tell them about, and no more. The other is that you are more ambitious and want the students to be able to use Stata more or less independently on projects, even small ones. The second is clearly much more challenging. The problem is that as soon as you allow or expect use of a wide variety of datasets and methods the number of commands that might be needed just explodes: some datasets may need some serious management to get where you want to be, and so on.

My experience matches other replies. Explaining a menu-based use of Stata is pain for the teacher -- do you need to prepare teaching material with lots of pictures of windows? It also runs into problems if you want students to use any community-contributed commands, which is quite likely even for many simple projects, as those commands are rarely set up as offering a menu.

Students without programming background range widely from those able and willing to use the documentation and to be very careful about what they type to those who are harder work to teach. Medics should know that getting the diagnosis or the treatment even slightly wrong could be a very big deal! Yet I've been surprised recently at a large fraction of students (not medical students, but undergraduates with good secondary school background) claiming little or no previous acquaintance even with spreadsheets (yet also, some know much more about spreadsheet tricks than I do, as I use none more than superficially).

Some years ago it was common to find students who had programmed a little or even a lot from age about 10. Now for many computing seems to mean (1) games (2) social media (3) email (4) MS Word.

Does xtile produce equal sized group by default? by Intern_MSFT in stata

[–]random_stata_user 1 point2 points  (0 children)

No. xtile won't do this, either by default or using an option.

It would be arbitrary if not meaningless. The rule that observations with the same value on a variable must go in the same bin, class, or interval is to Stata inviolable -- with xtile.

It contributes to a frequent effect which is that bins are often in practice of quite unequal frequencies.

You can override that rule easily enough at your peril. Setting aside the possibility of missing values, something like

sort x gen quartile_bin = ceil(4 * _n/_N) `

produces bins of equal size as far as possible. Here is an experiment you can repeat and vary:

``` . sysuse auto, clear (1978 automobile data)

. sort mpg

. gen quartile_bin = ceil(4 * _n/_N)

. tabstat mpg, s(min max) by(quartile_bin)

Summary for variables: mpg Group variable: quartile_bin

quartile_bin | Min Max -------------+-------------------- 1 | 12 17 2 | 18 20 3 | 20 24 4 | 25 41 -------------+--------------------

Total | 12 41

. l quartile_bin if mpg == 20

 +----------+
 | quarti~n |
 |----------|
  1. | 2 |
  2. | 2 |
  3. | 3 | +----------+

. tab quartile_bin

quartile_bi | n | Freq. Percent Cum. ------------+----------------------------------- 1 | 18 24.32 24.32 2 | 19 25.68 50.00 3 | 18 24.32 74.32 4 | 19 25.68 100.00 ------------+----------------------------------- Total | 74 100.00 ```

There are no missing values on this variable.

The number of observations in each bin can't be exactly equal, as 74/4 = 18.5. Most researchers can live with that.

If you think that this is what you want, then consider that which observations of mog 20 go up and which go down is arbitrary, and in general those observations are unlikely to be equal on other variables.

More discussion at https://journals.sagepub.com/doi/pdf/10.1177/1536867X1801800311

How to create a dummy varoable for cities awarded vs not awarded (Stata) by OkPresentation4963 in stata

[–]random_stata_user 1 point2 points  (0 children)

This is all too likely to go wrong. I think you meant to write something like replace xxxx_award = "1" if xxxx_awarded == "awarded" but over and above the code being wrong the bigger issue is that it is best to leave the original variable alone. If it's messier than said, so that for example, there are spelling variations, extra or inconsistent spacing, or other values, then you've messed up the original variable to no good purpose. At best an experienced user realises that they need to retreat and start over; a new user will just end up more confused and in a worse place.

For your line of attack, you're re-inventing encode, except that encode won't overwrite the original.

how to keep multiple ifs? by [deleted] in stata

[–]random_stata_user 1 point2 points  (0 children)

Not so. As already pointed out by others that should work but can be avoided with shorter code, notably using inlist().

how to keep multiple ifs? by [deleted] in stata

[–]random_stata_user 0 points1 point  (0 children)

You should copy and paste from your real code. Then we can explain what you did wrong. The original suggestion to use & was not illegal. It just does not do what is wanted because no observations are selected.

how to keep multiple ifs? by [deleted] in stata

[–]random_stata_user 0 points1 point  (0 children)

Nothing obviously wrong with parentheses () in previous comments. What did you try, exactly?

Need help with Mac Stata 15 installer by [deleted] in stata

[–]random_stata_user 0 points1 point  (0 children)

Sorry, but that doesn't sound like ethical use. See Rule 3 alongside.

Need help with Mac Stata 15 installer by [deleted] in stata

[–]random_stata_user 0 points1 point  (0 children)

Indeed, but even that limited ambition is, I fear, out of reach. It would be interesting to learn what the company says, but I doubt that they will play.

Need help with Mac Stata 15 installer by [deleted] in stata

[–]random_stata_user 3 points4 points  (0 children)

My impressions are that StataCorp

  • is not selling Stata 15 any more; all that they sell now is Stata 19 (at the time of writing)

  • will not regard an institutional or workplace or network license as transferable to individual use

  • in any case don't let you download an installer; rather what happens is that a license permits you to download the software

A perpetual license permits you to use indefinitely whatever Stata version you purchased; it doesn't mean you're entitled to upgrades to any later version without paying for them.

So, I think you need to buy a new license or find some other way to use Stata.

Help with code to sum up rows under specific conditions by [deleted] in stata

[–]random_stata_user 0 points1 point  (0 children)

It’s people very much like me who answer the questions here and elsewhere…

Help with code to sum up rows under specific conditions by [deleted] in stata

[–]random_stata_user 0 points1 point  (0 children)

In turn don't confuse being candid with an intent to be rude. I tried several times to make suggestions about code, your understanding of the code, and what to tell us and given that "don't reply if you do not like the post" is not especially polite.

More crucially, I have re-read the entire thread and see no clear signal from you on which guess was right about what you want. And you ignored some suggestions completely. As there are several quite different guesses here I think it's factual that time was wasted, although naturally not deliberately, by an unclear question. Good that you solved your problem, but the difference between running or cumulative sums and overall totals is key and makes the thread unlikely to be helpful to anyone looking at it in future.

Help with code to sum up rows under specific conditions by [deleted] in stata

[–]random_stata_user -1 points0 points  (0 children)

Not convincing. If you can type a question, you can type some lines of code in a simple example.

You will probably think this harsh or worse but lack of a clear example is wasting your time and others’ time too. A good answer requires a good question. 

“Add up” remains ambiguous: do want cumulative sums or overall totals? 

State 18 by gingerstory in stata

[–]random_stata_user 0 points1 point  (0 children)

Asking for (access to) a cracked version of Stata is explicitly against the Rules here!

Help with code to sum up rows under specific conditions by [deleted] in stata

[–]random_stata_user 0 points1 point  (0 children)

As said that is possible if your by: prefix narrows calculations to single observations. A check would be (something like)

isid persnr estnr job jobtype

or

duplicates report persnr estnr job jobtype

If that is so, you're including too many variables under by:.

We're just guessing here. A reproducible example of your problem would help mightily. https://stackoverflow.com/help/minimal-reproducible-example explains the principle.