I recently bought a MacBook Air with the M1 processor and I have had difficulties in rebuilding my coding environment. This post will focus on installing R for Arm64, radian, and RStudio Desktop. My last Mac adventure over 20 years ago had me downloading and installing everything by hand. I have since adopted scripts to automate (and document) my setup. The key to everything is switching to homebrew for installation. This provides the native Arm64 version R which can be used with radian installed through Arm64 conda and allows R to work with the native Arm64 version of RStudio.
Install Xcode from the App store then run: xcode-select --install in the default zsh on Mac. I like to use the terminal in VS Code but you can just open the Terminal application that comes on Mac located in the Utilities folder within Applications.
Install R for Arm64 brew install r echo 'alias R="/opt/homebrew/opt/r/bin/R --vanilla"' >> ~/.zshrc I added this alias because I have never met anyone that wanted to save their workspace.
Install Anaconda/Miniconda3/Miniforge It took me a while to realize that all the cool kids use conda-forge as their default repository. Miniforge makes this easier. brew install miniforge conda init zsh conda update -y && conda -y --all
At this point, I got stuck. As of this writing, Anaconda/Miniconda did not have an Arm64 installer for macOS so I would need to run in x86 emulation which would not be compatible with Arm64 R and RStudio. Even using the Miniforge Arm64 install, radian 5.11 is listed on conda-forge but is does not install. This is most likely due to the conda-forge Arm64 repository being quite new. The trick is to create a new python environment (in an Arm64 python distribution) and install via pip3. conda create --name R conda activate R pip3 install radian echo 'alias r="radian"' >> ~/.zshrc && source ~/.zshrc
You should now have python, R, and radian all running on Arm64. I use VS Code on my own but I teach in RStudio. You will need to use the RStudio nightly builds to get Arm64 support. I am sure a stable version will be released in the near future. For those who are interested in VS Code, the vscode-R extension should now work with everything above (although I still haven’t gotten the session watcher to work properly).
Thank you to all the open source folks that make this software freely available. Happy coding!
One of the many eternal truths I learned in the Marine Corps is that planning is easy and execution is hard. The U.S. federal government already had plans in place for pandemic response before COVID-19. States, cities, and medical facilities all had plans. Some took them seriously while others did not. Another plan specific to the COVID pandemic was proposed by an impressive group of well-connected experts. I say “well-connected” but none of them seem to have any influence with actual decision makers. The plan itself is good and if you have any influence with politicians or business leaders, you should definitely read it here:
When spot prices fall relative to futures prices, traders buy the commodity and store it until it is in greater demand. With the reduction in demand and excessive supply, storage is becoming more scarce and becoming more expensive. The more expensive the storage, the lower the spot price needs to fall before traders will buy and store the commodity. Usually, there is some customer that would be willing to buy at a low price but currently, there is no way to store the oil and very few consumers of oil due to the COVID-19 lockdown. Traders with long positions usually close their contracts and buy new contracts with a longer maturity in order to avoid taking physical delivery. With no buyers, these traders needed to unload their contracts at ridiculous prices to avoid being fined for not taking delivery at the expiration of their contracts.
Without a doubt, a free WordPress site is the easiest and fastest way to get started on the web. As a professional, I like control over every aspect of the website so I do not want ads particularly when I have no control over what ads will be plastered all over my site. I also want to use custom html which costs a fortune on a paid WordPress subscription. This brings me to static websites which can be hosted for free on various platforms such as GitHub.
I like Hugo because it renders sites quickly and is relatively easy to set up. The official Quick Start is very good but I have modified it to document my preferences. I prefer to run everything on Ubuntu or using Ubuntu under the Windows Subsystem for Linux (WSL) on Windows.
sudo gdebi install hugo_extended*
hugo new site mysite
git submodule add https://github.com/gcushen/hugo-academic.git
echo 'theme = "hugo-academic"' >> config.toml
The Academic theme contains an example site located in themes/hugo-academic/exampleSite. I also recommend editing the site footer located in themes/hugo-academic/layouts/partials/site_footer.html
Hugo builds sites into the public folder using the command hugo. IT can also build a locally hosted version of the site using hugo server.
You can check out my Hugo website using the Academic theme here.
A very reasonable process when confronting policy decisions is to consider the economic impact of those decisions. Recently, the suggestion of 20% unemployment has been repeated by media because Treasury Secretary Mnuchin used that number when briefing Congress. This was not an estimate based on any kind of model or thoughtful analysis as stated by the secretary himself. I am certain that in the next few weeks there will be numerous estimates of economic impact hopefully with better analysis but none of them will be adequate to support policy decisions.
Many firms have access to high-frequency data on credit card transactions from which they can estimate changes in spending. Most economists neither have access nor are familiar with these data sets. They will try to use examples from the Spanish Flu or from more minor events that have occurred in structurally different global economies through time.
One of the confounding factors in forecasts, is that the US has become accustomed to using markets as a signal for policy. While markets do provide useful information, they also incorporate changes in risk preferences and perception which are often confused with event probabilities. An accurate economic forecast must now factor in policy changes resulting from changes in risk perception which may or may not be related to actual events.
The answer to the economic impact question is that there will be heroic assumptions made on the effectiveness of unknown future health policy. Further heroic assumptions will estimate the interaction of unknown future monetary and fiscal policy with health policy. All of this will be based on the (much more likely) assumption that medical professionals will know more about how COVID-19 is transmitted and will development more effective treatments over time.
We should find comfort in the fact that the lack of certainty is not uncommon. When stakes are low, it is easy to fool ourselves into thinking that the world is certain. During times of crisis, we should remember that the world was never as certain as we thought, but that is OK.
As a finance professor, you occasionally get questions like these:
“A friend and I were wondering what your opinion was about the Fed dropping close to 0% interest rates. Additionally, we were wondering on what your opinion was on the markets reaction to everything since.”
My response is below:
Most businesses have a revolving line of credit that they draw down in case of emergencies. Banks need to provide cash when they do this and usually it is an idiosyncratic event. Right now, all businesses are maxing out their credit lines which means banks need a lot of cash. The Fed Funds market is a way to push money out to all banks and then to businesses. The reason this should be different than the Financial Crisis is that the Fed also cut the interest paid on Fed deposits which was why banks did not lend in the aftermath of the last crisis. Now, banks have a greater incentive to lend although they will be looking at risk and still may not lend to risky businesses.
Monetary policy is very useful for managing the banking system. Federal Reserve policy cannot change the consumer’s willingness to spend or ability to spend due to supply chain and distribution disruptions. Additionally, the Fed cannot fix any of the fundamental causes of this crisis. On Friday, the markets were reacting to the president’s announcement on the use of fiscal policy and measures for dealing with COVID-19. Over the weekend, it turned out that many of the president’s statements were not entirely true. The positive market reaction on Friday was reversed today. Until there is some progress on COVID-19 management and a fiscal policy response, markets are expecting a longer and more severe economic reaction.
After the R/Finance conference, we had the opportunity to visit the Chicago Board of Trade Building. Brian Peterson, one of the conference committee members, gave us a tour of the building and took us up to the rooftop lounge for beers.
During the days of open outcry, the building housed the trading floor with pits for each commodity. With all trading being conducted electronically, the pits have been removed. Depictions of the Roman god of grain, Ceres, are displayed inside as well as a 31 ft statute on top of the building.
As you enter the building, there is the Ceres restaurant and an empty hallway where the pits were located. A wall of original Warhols is located further inside. I included some pictures of the Art Deco elevator doors and mailboxes but there is much more to see.
I have a thing for 1920’s jazz and Gunhild Carling but much of what draws people to music has nothing to do with what they hear. Musicians often say that the audience listens with their eyes which is difficult for musicians that focus on music rather than visual performance. The idea of hair bands making a comeback might seem ludicrous and I would say that the cabaret cover version sounds more modern now. I wonder which version will seem more authentic 40 years from now. If we only played the audio, would it change?
This guy is just cool. Naia Izumi will probably never get radio play anywhere that I live unless it is on NPR. Live performances are also unlikely outside of the cities so I am grateful anytime I have the opportunity to hear a unique musician.
This program was not nearly as popular as Tristan and Iseult earlier this week but I was pleasantly surprised by the voicing of the Gabrieli pieces. I am not sure how much that should be attributed to the arranger versus the original since the brass instruments featured in the original are not longer commonly available. Of course, Iestyn Davies was very impressive as the countertenor in Bach’s Cantata No 170. Program