Skip to content

Commit 9dcbb83

Browse files
committed
Merge branch 'master' of github.com:mcaceresb/stata-gtools
2 parents 950c0bd + bf50a63 commit 9dcbb83

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/usage/gquantiles.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -29,21 +29,21 @@ pctile}</span>
2929
This function accepts `by()` with `xtile` and `pctile`. However, you
3030
can simply use it as a replacement for native Stata commands.
3131

32-
__*Equivaent to pctile*__ (store the quantiles of `exp` in `newvar`):
32+
__*Equivalent to pctile*__ (store the quantiles of `exp` in `newvar`):
3333
```stata
3434
gquantiles newvar = exp [if] [in] [weight], pctile [nquantiles(#) genp(newvarname) altdef]
3535
```
3636

3737
<br>
38-
__*Equivaent to xtile*__ (store the categories of `exp` in `newvar`):
38+
__*Equivalent to xtile*__ (store the categories of `exp` in `newvar`):
3939
```stata
4040
gquantiles newvar = exp [if] [in] [weight], xtile [nquantiles(#) cutpoints(numlist) altdef]
4141
4242
fasterxtile newvar = exp [if] [in] [weight], [nquantiles(#) cutpoints(numlist) altdef]
4343
```
4444

4545
<br>
46-
__*Equivaent to \_pctile*__ (return the percentiles of `exp`):
46+
__*Equivalent to \_pctile*__ (return the percentiles of `exp`):
4747
```stata
4848
gquantiles exp [if] [in] [weight], _pctile [nquantiles(#) percentiles(numlist) altdef]
4949
```
@@ -339,7 +339,7 @@ In theory there is no reason to limit NQ. For example, the question
339339
well-defined question. Even if there will be at least 996 categories
340340
contain no values, there is no reason to limit the number of categories
341341
to 4 (of course, since the 1000 categories are created from those 4
342-
values, in practice this might not be adviseable).
342+
values, in practice this might not be advisable).
343343

344344
So why does the limit exist in `xtile`? It is actually a limit in `pctile`,
345345
which is used internally. Since `pctile` stores the percentiles in a variable

0 commit comments

Comments
 (0)