-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3de344
commit e991080
Showing
6 changed files
with
37 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
*! spider v1.32 (11 Jun 2024) | ||
*! spider v1.33 (02 Jul 2024) | ||
*! Asjad Naqvi ([email protected]) | ||
|
||
|
||
* v1.33 (02 Jul 2024): passthru bugs | ||
* v1.32 (11 Jun 2024): add wrap() for label wraps | ||
* v1.31 (11 May 2024): changed raformat() to format(). Format default improved. by() and over() error checks added. passthru changed to *. | ||
* v1.3 (16 Feb 2024): rewrite to suport long form, add rotate label, better legend controls. | ||
|
@@ -51,7 +51,7 @@ version 15 | |
marksample touse, strok | ||
|
||
|
||
qui { | ||
quietly { | ||
preserve | ||
keep if `touse' | ||
keep `varlist' `by' `over' | ||
|
@@ -69,13 +69,17 @@ preserve | |
encode `by', gen(_by) | ||
local by _by | ||
} | ||
else { | ||
else { // if numeric with value label | ||
egen _by = group(`by') | ||
if "`: value label `by''" != "" { | ||
tempvar tempov | ||
decode `by', gen(`tempov') | ||
labmask _by , val(`tempov') | ||
} | ||
else { // if numeric with value label | ||
labmask _by, val(`by') | ||
} | ||
|
||
local by _by | ||
} | ||
|
||
|
@@ -108,10 +112,16 @@ preserve | |
decode `over', gen(`tempov') | ||
labmask _over, val(`tempov') | ||
} | ||
else { // if numeric with value label | ||
labmask _over, val(`over') | ||
} | ||
|
||
local over _over | ||
} | ||
} | ||
|
||
|
||
|
||
collapse (mean) `varlist', by(`by' `over') | ||
|
||
sum `varlist', meanonly | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
v 1.32 | ||
v 1.33 | ||
d 'SPIDER': A Stata package for spider plots | ||
d | ||
d Distribution-Date: 20241011 | ||
d Distribution-Date: 20240702 | ||
d | ||
d Asjad Naqvi | ||
d [email protected] | ||
|