Jared Colston
banner
jaredcolston.bsky.social
Jared Colston
@jaredcolston.bsky.social
Lead Data Scientist @SSTARLab. Ph.D. candidate @UW-Madison in Higher Ed Policy, studying geography of ed. opportunity and impact of colleges on their local economies/communities. Opinions my own.
And since this command is just a simple wrapper for the -twoway line- command, all other -twoway- options are available:
trendline gdp_percap if inlist(regnum,1,2), time(year) category(regnum) lpattern(dash)
November 20, 2024 at 2:32 PM
-if- statements are also allowed with the command:
trendline gdp_percap if inlist(regnum,1,2), time(year) category(regnum)
November 20, 2024 at 2:32 PM
You can also change the statistic (any statistic available in the -collapse- command):
trendline gdp_percap, time(year) category(regnum) statistic(median)
November 20, 2024 at 2:32 PM
And you can plot by group:
trendline gdp_percap, time(year) category(regnum)
November 20, 2024 at 2:32 PM
The simplest form of the command plots mean values over time for your entire dataset:
trendline gdp_percap, time(year)
November 20, 2024 at 2:32 PM
Too late to explore the world, too soon to explore the universe...
September 17, 2024 at 2:50 AM