interaction_effects_in_regression_analysis
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interaction_effects_in_regression_analysis [2023/06/14 08:54] – [Two continuous variables] hkimscil | interaction_effects_in_regression_analysis [2025/06/16 13:00] (current) – [E.g.2] hkimscil | ||
---|---|---|---|
Line 96: | Line 96: | ||
====== Two category variables ====== | ====== Two category variables ====== | ||
- | < | + | < |
+ | > set.seed(12) | ||
> f1< | > f1< | ||
> f2< | > f2< | ||
Line 272: | Line 273: | ||
- f1High:f2C : 질소가 High이고 온도도 High인 상태 -1.16 감소한다. | - f1High:f2C : 질소가 High이고 온도도 High인 상태 -1.16 감소한다. | ||
- | < | + | <code> |
- | {{: | + | > interact_plot(mod2, |
+ | </ | ||
+ | {{: | ||
+ | < | ||
+ | > interact_plot(mod2, | ||
+ | </ | ||
+ | {{: | ||
+ | : | ||
====== Two continuous variables ====== | ====== Two continuous variables ====== | ||
< | < | ||
Line 412: | Line 420: | ||
====== E.g.2 ====== | ====== E.g.2 ====== | ||
{{: | {{: | ||
- | Download the data file to c:/ | + | < |
- | do | + | # states.data <- readRDS(" |
- | < | + | states.data <- readRDS(url("http://commres.net/ |
+ | </ | ||
Or, read the above data file directly | Or, read the above data file directly | ||
Line 462: | Line 471: | ||
</ | </ | ||
< | < | ||
- | > data.info <- data.frame(attributes(data)[c(" | + | > data.info <- data.frame(attributes(states.data)[c(" |
> # attributes(data) reveals various attributes of the data file, | > # attributes(data) reveals various attributes of the data file, | ||
> # which contains variable names and labels. | > # which contains variable names and labels. |
interaction_effects_in_regression_analysis.1686700458.txt.gz · Last modified: 2023/06/14 08:54 by hkimscil