Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

SEM Error

I'm new to JASP, but not to R. I've entered the R code below in the JASP SEM window:

model.1<-peer~coa

When I press Cntrl + Enter to apply the code, I get the following error::

lavaan ERROR: left hand side (lhs) of the formula: model.1<-peer~coa

contains either a reserved word (in R) or an illegal character...

The code works in R and is from an SEM training, so it's a functional code. What am I missing? Thanks.

B

Comments

  • Hi B

    The code is based on lavaan, and the error also seems to come from lavaan. Did you run this in lavaan? I suspect it is the period in model.1 -- could you confirm that the period is the culprit?

    Cheers,

    E.J.

  • Hello,

    The standard error of a statistic is the standard deviation of its sampling distribution or an estimate of that standard deviation. If the statistic is the sample mean, it is called the standard error of the mean.

    The sampling distribution of a mean is generated by repeated sampling from the same population and recording of the sample means obtained. This forms a distribution of different means, and this distribution has its own mean and variance. Mathematically, the variance of the sampling distribution obtained is equal to the variance of the population divided by the sample size. This is because as the sample size increases, sample means cluster more closely around the population mean.


    Thanks

    Daniel Charles

Sign In or Register to comment.