Posts

Math expression in Mainroad theme

Enabling MathJax in a page (TeX syntax) Add the following line to config.toml: [Params] ... mathjax = true # Enable MathJax mathjaxPath = "https://cdn.mathjax.org/mathjax/latest/MathJax.js" # Specify MathJax path mathjaxConfig = "TeX-AMS-MML_SVG" # MathJax config ... At the top of a page where you want to use mathjax, add the following line. mathjax = true Then, you can use TeX syntax in the post double dollar mark $$. Inline math Add the following lines in .

Meta-Analysis, Meta-Regression and Moderator-Analysis

Here are some suggestions for definitions that may help to clarify the terminology: Meta-analysis: A general term to denote the collection of statistical methods and techniques used to aggregate/synthesize and compare the results from several related studies in a systematic manner. Moderator analysis: In the context of a meta-analysis, this refers to using some kind of method in an attempt to find and account for systematic differences in the size of the effect or outcome that is being meta-analyzed.

git add - fatal: Unable to create: …File exists

报错信息如下: $ git add --all fatal: Unable to create 'E:/OneDrive/Mine/MySite/MyBLOG/.git/index.lock': File exists. Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'. Please make sure all processes are terminated then try again. If it still fails, a git process may have crashed in this repository earlier: remove the file manually to continue. 解决方案 $

Markdown代码块类型

Markdown支持的代码块类型如下: 名称 关键字 调用的js AppleScript applescript shBrushAppleScript.js ActionScript 3.0 actionscript3, as3 shBrushAS3.js Shell bash, shell shBrushBash.js ColdFusion coldfusion, cf shBrushColdFusion.js C cpp, c shBrushCpp.js C# c#, c-sharp, csharp shBrushCSharp.js CSS css shBrushCss.js Delphi delphi, pascal, pas shBrushDelphi.js diff&patch diff patch shBrushDiff.js Erlang erl, erlang shBrushErlang.js

Creating spatial weight matrix using Geoda and Stata

先使用Geoda生成gal文件,然后使用下面的stata commands来生成空间加权矩阵文件: ssc install spwmatrix * remove the first and last lines of the txt file spwmatrix import using spwmatrix import using C:\Users\*USER*\Desktop\Tutorial\Weights_file.gal, wname(weights)