Articles by R to the max

Relative risk regression (1/2)

August 23, 2022 | R to the max

When the outcome variable is binary such as alive/dead or yes/no, the most popular analytic method is logistic regression. \[\textrm{logit}(\mathbb{E}[y]) = \beta_0 + \beta_1 x_1 + \beta_2 x_2 + \cdots \] The name “logistic” might have come from the equation below, which can be derived from applying the inverse ... [Read more...]

measurement units

March 14, 2022 | R to the max

Data mtcars has a column named mpg. mpg means miles per gallon. ‘Mile’ and ‘gallon’ are units for length and volume. A mile is approximately 1.6 kilometers and a gallon is approximately 3.7 liters. Mile and gallon sound unfamiliar to people who live outside England or U.S.A. because international standard ...
[Read more...]

character in UTF-8

March 5, 2022 | R to the max

Encoding Computer can store data only with 0s and 1s. Putting together a lot of 0s and 1s, a computer can present a bigger number. But if it want to store a letter, it needs a mapping of a number onto a letter. This mapping is called “encoding”. Encoding depends ... [Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)