ZIQI XIE
  • Home
  • About
  • Research
  • Teaching
  • Blog
  • Contact

R wordcloud

6/14/2020

0 Comments

 

Show your skills via wordcloud and ggwordcloud in R.
First, set up a skill levels as follows:

Picture

Then, load the data into R and make the word cloud.
Codes are available here.

0 Comments

​Improve your Mac with external SSD

12/7/2019

0 Comments

 
​People love speed, especially when you really need to look up something or change a file in a hurry. You do not want to see the computer is always in responding mode when you click something. For me, I have a mac mini at home. It is a 2014 mac mini with a 8 GB 1600 MHz DDR3 memory, a 2.6 GHz Dual-Core Intel Core i5 processor, and a 1 T hard disk drive (HDD).

It was OK for the first few years. However, it became slower and slower. It takes me 5-10 mins to start and 30-40 mins when there is a system update. And it could not respond when I handle large data in R or STATA. So I decided to add an external hard drive (SSD) to improve the speed. About the difference between HDD and SSD, you can find it here. Generally, SSD is much faster than HDD. However, SSD is more expensive with a relatively small storage size. Recent Mac models, from desktops to laptops, are all using SSDs. If you have Mac model with fusion drive, you can simple consider it as a mixture of HDD and SSD. Anyway, in the following, I show you how to do it in a quick way.

-Choose your SSD
Portable external SSD has a small size. Currently, a 500 GB SSD is around 90 dollars (maybe you can find a better deal). Simply choose one you like (brand/color/shape) and we will go to the next step.

-Format your SSD
It is essential to format your SSD before using it, because you want it to have the same format with your Mac. In your computer, find out "Disk Utility", plugin your new SSD, you can find it appears in the on the left column. Select it, then click "erase" (PLEASE SELECT THE NEW SSD NOT YOUR MAC DISK!!! YOU DO NOT WANT TO ERASE ALL YOUR CURRENT FILES). If you are using the latest MacOS(Catalina), you need to choose the format "APFS". It takes 1 min to erase and format. After this, your SSD is ready to go.

-Copy your stuff from old to new
There are several ways to setup your new SSD. You can simply install a brand new system and get everything re-start. For me, I have a lot stuff in my old computer, so I have to transfer them to the new one. One way is to use the Apple's time machine to backup. The way I use here is pretty simple. You can download a software called "SuperDuper", which supports to copy everything including the system, all the computer settings, documents etc. in tor the SSD. The copy process took 3 hours for me. And it is really depends on the condition of your current computer and the size of your files.

For full post please find here.
0 Comments

Tulane Photography Contest

9/10/2019

0 Comments

 
Picture
The Commons, the newest building at Tulane University, is a $55 million, 77,000-square-foot state-of-the-art eatery and study area, which opened Fall 2019. To celebrate, Tulane Official Instagram account promoted a #AtTheCommons photography contest. 
My photo is one of the two final winners. You can find the post here.
0 Comments

RStata in R

8/23/2019

0 Comments

 
Package "RStata" provides a way to combine Stata code with R. This might be a quick way to turn Stata knowledge into R environment.  The example results are as follows. For installation, please see my note on Github (Mac User).
Picture
0 Comments

Matching Methods Summary

8/2/2019

0 Comments

 
For causal inferences, matching methods have become more and more attracting aiming to reduce the imbalance of the treated and control groups. The basic idea in matching methods is to look for one or more observations in the control group for treated observations, based on a set of controls variables. While controlling for the changing factors, we can estimate the average treatment effects (ATE) and ATE on treated (ATT) directly. Generally speaking, the most widely used matching method is the propensity score matching, which is proposed by Paul Rosenbaum and Donald Rubin in 1983. To improve the accuracy of matching process, a variety of methods were developed from basic one to one match based on the propensity score, to matching with the nearest neighbor, radius and kernel, to the most recent machine learning matching methods like lasso, support vector machine. Each method has its pros and cons.
Details: Matching Methods.
0 Comments

Submit your website to Search Engines

7/12/2019

0 Comments

 

Nowadays, it seems to be a standard to have a personal website for Ph.D. candidates in the field of economics. Every year, before on the market, most of the candidates build their own websites on google sites/ weebly/ wix etc. However, if you want to make your site to be visible in the search engines ad improve the visits, you need to submit/verify your site with one or more search engines. Here I take Google as an example. 
I have a short note on how to submit your website to search engines at github.

0 Comments

Causal Analysis

7/10/2019

0 Comments

 
I will create a repository at github for causal analysis.
This repository provides useful econometric tools for causal analysis and program evaluation. It contains files (mostly markdown files) and notes that I benefit a lot during my study. Updating daily.
0 Comments

Jupyter Notebook

7/1/2019

0 Comments

 
Picture
If you are using Mac OS Catalina Beta Version released in June 2019, you might probably have difficulty in opening Anaconda, which appeared as above under beta system.
Following is a way that I used to solve this issue (if you installed the Mac OS beta version on all of your PCs like me and still need to learn/use):
In Terminal, install Jupyter with pip; then open Jupyter notebook through Terminal/ working under vscode with respect interpreter
```
pip3 install jupyter
​jupyter notebook
```
​It will promote to Jupyter Notebook in your web browser.
VS code can also be used after select repected interpreter and you can begin using #%% comment as following:

Picture
References are available here.
0 Comments

Coloring the latex tables

6/1/2019

0 Comments

 
Details with latex code see here.
For most Ph.D. students in economics, latex is the most widely used document preparation system. This note provide one technique in preparing tables.
Here we need a package called "colortbl".
And the tables can be showed as follows:
0 Comments
  • Home
  • About
  • Research
  • Teaching
  • Blog
  • Contact