Hoping someone can help...
We have been instructed as part of a research assignment to use RStudio for data analysis....while I am computer literate I am not this level!
I have imported the data set using the click options, I have installed and accessed the library for car, QuantPsyc, reshape and mediation. A youtube recommended Lavaan so that's there too. I have given it the command to read my CSV and still the same error. I'm sure this is something basic but as I said I am a beginner beginner and this is not fun!
Here is my script so far....This is my second file attempt, my first came up with the same errors
library(readr)
Warning message:
R graphics engine version 14 is not supported by this version of RStudio. The Plots tab will be disabled until a newer version of RStudio is installed.
Assignment_Data_Updated <- read_csv("Assignment_Data_Updated.csv")
-- Column specification --------------------------------------
cols(
Rel.Sat = col_double(),
LifeSat = col_double(),
Wellbeing = col_double(),
Gender = col_character(),
Age = col_double()
)
View(Assignment_Data_Updated)
Satisfaction <- lm (Wellbeing ~ LifeSat, data = Rel.Sat)
Error in is.data.frame(data) : object 'Rel.Sat' not found
library (readr)
df <- read_csv("Assignment_Data_Updated.csv")
-- Column specification --------------------------------------
cols(
Rel.Sat = col_double(),
LifeSat = col_double(),
Wellbeing = col_double(),
Gender = col_character(),
Age = col_double()
)
SatisfactionModel <- lm (Wellbeing ~ LifeSat, data = Rel.Sat)
Error in is.data.frame(data) : object 'Rel.Sat' not found
install.packages("lavaan")
Installing package into ‘C:/Users/User/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
also installing the dependencies ‘tmvnsim’, ‘mnormt’, ‘pbivnorm’
The downloaded binary packages are in
C:\Users\User\AppData\Local\Temp\RtmpGK3u15\downloaded_packages
library (lavaan)
This is lavaan 0.6-8
lavaan is FREE software! Please report any bugs.
SatisfactionModel <- lm (Wellbeing ~ LifeSat, data = Rel.Sat)
Error in is.data.frame(data) : object 'Rel.Sat' not found