Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.1%) to scientific vocabulary
Keywords
Repository
A Stata package for smooth line plots
Basic Info
Statistics
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
- Releases: 2
Topics
Metadata Files
README.md
Installation | Syntax | Examples | Feedback | Change log
splinefit v1.1
(02 May 2024)
Installation
The package can be installed via SSC or GitHub. The GitHub version, might be more recent due to bug fixes, feature updates etc, and may contain syntax improvements and changes in default values. See version numbers below. Eventually the GitHub version is published on SSC.
SSC (v1.1):
stata
ssc install splinefit, replace
GitHub (v1.1):
stata
net install splinefit, from("https://raw.githubusercontent.com/asjadnaqvi/stata-splinefit/main/installation/") replace
If you want to make a clean figure, then it is advisable to load a clean scheme. These are several available and I personally use the following:
stata
ssc install schemepack, replace
set scheme white_tableau
You can also push the scheme directly into the graph using the scheme(schemename) option. See the help file for details or the example below.
I also prefer narrow fonts in figures with long labels. You can change this as follows:
stata
graph set window fontface "Arial Narrow"
Syntax
The syntax for the lastest version is as follows:
stata
splinefit y x [if] [in],
[ smooth(0-1)points(num) close lwidth(str) lcolor(str) lpattern(str) msymbol(str) msize(str)
mcolor(str) mlabel(str) mlabposition(str) mlabsize(str) * ]
See the help file help splinefit for details.
Examples
Get the example data from GitHub:
``` set obs 10
gen id = _n gen x = . gen y = .
set seed 2024 replace x = runiformint(-10,10) replace y = runiformint(-10,10) ```
splinefit y x

splinefit y x, close

Smoothing
splinefit y x, close smooth(0)

splinefit y x, close smooth(0.2)

splinefit y x, close smooth(1)

Additional options
splinefit y x, smooth(0.5) lc(gs12) lw(0.2) lp(dash) mc(red) ms(1.2) legend(off) mlab(id) close

Feedback
Please open an issue to report errors, feature enhancements, and/or other requests.
Change log
v1.1 (02 May 2024) - Improved version with more options.
v1.0 (01 Aug 2023) - Public release of the beta.
Owner
- Name: Asjad Naqvi
- Login: asjadnaqvi
- Kind: user
- Location: Vienna
- Company: WIFO
- Website: https://asjadnaqvi.github.io/
- Twitter: AsjadNaqvi
- Repositories: 52
- Profile: https://github.com/asjadnaqvi
Vienna, Austria
Citation (CITATION.cff)
cff-version: 1.2.0 authors: - family-names: "Naqvi" given-names: "Asjad" title: "Stata package ``splinefit''" version: 1.1 date-released: 2024-05-02 url: "https://github.com/asjadnaqvi/stata-splinefit"
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: 41 minutes
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 0.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- ericmelse (1)