Error with sem function at R : differences in factors -


i wanted use function sem (with package lavaan) on data in r :

model1<- 'transfer~amotivation+gender+age amotivation~gender+age  transfer 4 questions 5 point likert scale  amotivation: 4 questions 5 pint likert scale gender: 0 (=male) , 1 (=female) age: different ages  

and got next error:

in getdatafull (data= data, group =  group, grow.label = group.label,: lavaan warning: observed variances (at least) factor 100 times larger others; please rescale  

is familiar error? influence results? have change anything? don't know error means.

your scales not equivalent. gender variables constrained either 0 or 1. amotivation constrained between 1 , 5, age less constrained. created sample data gender, age, , amotivation. can see variance age variable on 4,000 times higher variance gender, , 500 times higher sample amotivation data.

gender  <- c(0,1,1,1,0,0,1,1,0,1,1,0,0,1,1,1) age <- c(18,42,87,12,24,26,98,84,23,12,95,44,54,23,10,16) set.seed(42) amotivation <- rnorm(16, 3, 1.5) var(gender)      #    0.25 variance var(age)         # 1017.27 variance var(amotivation) #    2.21 variance 

i'm not sure how unequal variances influence results, or if need @ all. make age variable more closely match amotivation scale, transform data it's on 5 point scale.

newage <- age/max(age)*5 var(newage) # 2.65 variance 

you try running analysis both ways (using original data , transformed data) , see if there differences.


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -