Installing package into 'C:/Users/H P/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
package 'tidyverse' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\H P\AppData\Local\Temp\RtmpOojPuk\downloaded_packages
install.packages("summarytools")
Installing package into 'C:/Users/H P/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
package 'summarytools' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\H P\AppData\Local\Temp\RtmpOojPuk\downloaded_packages
install.packages("skimr")
Installing package into 'C:/Users/H P/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
package 'skimr' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\H P\AppData\Local\Temp\RtmpOojPuk\downloaded_packages
install.packages("gtsummary")
Installing package into 'C:/Users/H P/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
package 'gtsummary' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\H P\AppData\Local\Temp\RtmpOojPuk\downloaded_packages
install.packages("broom.helpers")
Installing package into 'C:/Users/H P/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
package 'broom.helpers' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\H P\AppData\Local\Temp\RtmpOojPuk\downloaded_packages
library(tidyverse) #data manipulation
Warning: package 'tidyverse' was built under R version 4.4.2
Warning: package 'dplyr' was built under R version 4.4.2
── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr 1.1.4 ✔ readr 2.1.5
✔ forcats 1.0.0 ✔ stringr 1.5.1
✔ ggplot2 3.5.1 ✔ tibble 3.2.1
✔ lubridate 1.9.3 ✔ tidyr 1.3.1
✔ purrr 1.0.2
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag() masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors
library(summarytools) #exploration
Warning: package 'summarytools' was built under R version 4.4.2
Attaching package: 'summarytools'
The following object is masked from 'package:tibble':
view
library(skimr)
Warning: package 'skimr' was built under R version 4.4.2
library(gtsummary)
Warning: package 'gtsummary' was built under R version 4.4.2
library(broom.helpers)
Warning: package 'broom.helpers' was built under R version 4.4.2
Attaching package: 'broom.helpers'
The following objects are masked from 'package:gtsummary':
all_categorical, all_continuous, all_contrasts, all_dichotomous,
all_interaction, all_intercepts
lr_data <-read.csv(("C:/Users/H P/OneDrive - The Goose and Duck/Desktop/R/jomresearch_data_11March2024-main/data/linear_regression.csv"))lr_data <- lr_data %>%mutate(species =as.factor(species),species =fct_recode(species, Setosa ="0",Versicolor ="1",Virginica ="2"))
Installing package into 'C:/Users/H P/AppData/Local/R/win-library/4.4'
(as 'lib' is unspecified)
package 'car' successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\H P\AppData\Local\Temp\RtmpOojPuk\downloaded_packages
library(car)
Warning: package 'car' was built under R version 4.4.2
Loading required package: carData
Attaching package: 'car'
The following object is masked from 'package:dplyr':
recode
The following object is masked from 'package:purrr':
some
car::vif(prefinal_mod) #all aGSIF should be < 3.16