In lesson 2 we used two objects to analyze state demographics:
?df_pop_state, which has data from the 2012 5-year America Community Survey (ACS)
?df_state_demographics, which has data from the 2013 5-year ACS
To get data from other years you need to access the US Census API. To do that:
Fill out this form to get a Census API Key. They will email you a key.
When you get your key, type the following in R:
Creating a map of 2010 population estimates is now simple:
df_2010_demographics$value = df_2010_demographics$total_populationstate_choropleth(df_2010_demographics, title = “2010 State Population Estimates”, legend = “Population”)
Homework: Use the function ?get_zip_demographics to make a map of some demographic in San Francisco County (FIPS code 6075) in 2011. get_zip_demographics is in the package choroplethrZip. Tweet the resulting image to me (@AriLamstein) with the hashtag #censuscourse.
LEARN TO MAP CENSUS DATA
Subscribe and get my free email course: Mapping Census Data in R!
100% Privacy. We don’t spam.
The most tempting procedure is to score your model on the data used to train it. The attraction is this avoids the statistical inefficiency of denying some of your data to the training procedure.
A common way to asses score quality is to run your scoring function on the data used to build your model. We might try comparing several models scored by AUC or deviance (normalized to factor out sample size) on their own training data as shown below.
Our study aims to investigate the association between socioeconomic variables, selected symptoms, disorders and the SRH of participants from the eldercare home.
In September 1979, China's Fifth National People's Congress passed a policy that encouraged one-child families. Following this decision from the Chinese Communist Party (CCP), campaigns were initiated to implement the One-Child Policy nationwide. This initiative constituted the most massive governmental attempt to control human fertility and reproduction in human history. These campaigns prioritized reproductive technologies for contraception, abortion, and sterilization in gynecological and obstetric medicine, while downplaying technologies related to fertility treatment.
e saw that rank regression had a very statistically significant result. Therefore, the next step would be to evaluate the basic signals — whether or not there is statistical significance in the actual evaluation of the signal–namely, since the strategy from SeekingAlpha simply selects the top-ranked ETF every month, this is a very easy signal to evaluate.
Cliff Smith’s strategy depends on the latter, effectively, among a group of five bond ETFs. I am not certain of the objective of the strategy (he didn’t mention it), as PCY, JNK, and CWB, while they may be fixed-income in name, possess volatility on the order of equities. I suppose one possible “default” objective would be to achieve an outperforming total return against an equal-weighted benchmark, both rebalanced monthly.
The constraints are that one would need a sufficient amount of capital such that fixed transaction costs are negligible, since the strategy is a single-instrument rotation type, meaning that each month may have two-way turnover of 200% (sell one ETF, buy another). On the other hand, one would assume that the amount of capital deployed is small enough such that execution costs of trading do not materially impact the performance of the strategy. That is to say, moving multiple billions from one of these ETFs to the other is a non-starter. As all returns are computed close-to-close for the sake of simplicity, this creates the implicit assumption that the market impact and execution costs are very small compared to overall returns.
Vice President Joe Biden and Manhattan District Attorney Cyrus Vance Jr. on Thursday announced they will devote a combined $79 million to combat the accumulation of untested sexual assault kits held by police agencies across the country.
This week, Europe's migrant crisis appears to have reached what may be a turning point for the tens of thousands of displaced people currently making their way to and across the continent.
A new visitor center has been dedicated on a Pennsylvania hill overlooking the site where United Airlines Flight 93 came down during the 9/11 attacks. The visitor center is at the Flight 93 National Memorial near Shanksville.
Political leaders have been reacting to the decision by Northern Ireland First Minister Peter Robinson to step aside in a deepening crisis at Stormont.
WASHINGTON — There is no evidence so far to indicate that sensitive personnel information exposed in the massive cyber breach at the Office of Personnel Management has been used against victims or government institutions
For a long time, SPSS has been presumed to be the standard tool for statistical data analysis in companies and public institutions. Now, more users are considering changing their programming language to R – the promising solution in regard to data mining and predictive analytics.
In order to develop deliberate policy and care that targets this group of elderly people, it is necessary to understand their lifeworld. The aim of this paper is to describe the phenomenon ‘life is completed and no longer worth living’ from a lifeworld perspective, as it is lived