I read through below page, implemented R code for analysis, plotted linear or nonlinear lines for personal study.
Source UCLA | FAQ HOW DO I INTERPRET A REGRESSION MODEL WHEN SOME VARIABLES ARE LOG TRANSFORMED?
Read data read data from here
1 lgtrans <- read_csv("lgtrans.csv") outcome variables log transformed
$ log(y_{i}) = \beta_{0} +\beta_{1}x_{1i} + \cdots \beta_{k}x_{ki} + e_{i}$
intercept-only model 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 > lgwrite.
For tracking user behavior per unit of page link, I did some re-configurations on Google analytics.
Configuration on Google Analytics Google Analytics > Admin (gear symbol)
Add Account name (e.g. “tato’s note”) and click “Next”
Select Reporting time zone (e.g. “Japan”)
Click link of advanced options
Toggle `Create Universal Analytics property Add Property name (e.g. tato’s note) Add website url (e.g. https://note.
Tex/LaTex allows simple construction of mathematical formulae, while looking professional when printed.
Ref. Wikibook | LaTex/Mathematics
Although I wanted to write fine math formula on this page, it was a little subtle configuration to work finely.
KaTex I firstly tried to implement KaTex. Katex supports tidy Tex description.
Configuration I followed a configuration in example site of Hugo LoveIt theme that embeds KaTex.
config.toml
1 2 3 4 5 6 7 8 9 10 11 12 [params.
This is an exercising memo which I spent hours for converting data before plotting it as a numeric value.
problem on converting data While I want to convert a price data loaded from csv by data.table() (below is run on JupyterNotebook)
1 2 3 4 data <- read.table("../resource/asnlib/publicdata/Auto Insurance data.csv", header =T) str(data) typeof(data) head(data) [output]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 'data.
This is an exercising memo for R introduction in ISLR2
Setup Download R package(R-4.2.0-arm64.pkg from https://cran.ism.ac.jp/) and install it Download R studio(2022.02.2+485) from https://www.rstudio.com/products/rstudio/download/#download Open R studio at the prompt, enter install.packages("radiant") and install packages In the top navigation bar, select Tools → Addins → Browse Addins… Click “Radiant”, then install required packages R introduction memo dev.off(): indidates to R that we are done creating the plot. image(): color-coded contour plot persp(): three-dimensional plot index of matrix: A[ row index, column index].