michaelkalish / STA

State Trace
1 stars 5 forks source link

staPLOT for between-subject design experiment (continuous data) #7

Open benedikt-gailer opened 10 months ago

benedikt-gailer commented 10 months ago

I conducted a between-subject design experiment with 4 conditions. I have measured 2 dependet variables, which should correspond to the x- and y-axis of the State Trace Plot.

The columns of my dataset look like this:

  1. column: Participnat ID
  2. column: Condition (1-4)
  3. column: Dependent Variable Index (1-2)
  4. column: Dependent Variable Value (continouous)

all columns are numeric type variables

Upon running the staPLOT function with my data, I get this error message:

"Error in staPLOT(matrix_data_STA) : object 'ys' not found"

Could this be caused by a lack of within-subject conditions in my data set? Is it possible to use functions like staPLOT and staCMR with that kind of data?

Thanks in advance!

michaelkalish commented 10 months ago

I don’t see any problem with your approach — can you forward the data so we can try and reproduce the error?

Get Outlook for iOShttps://aka.ms/o0ukef


From: benedikt-gailer @.> Sent: Monday, November 27, 2023 10:33:52 AM To: michaelkalish/STA @.> Cc: Subscribed @.***> Subject: [michaelkalish/STA] staPLOT for between-subject design experiment (continuous data) (Issue #7)

I conducted a between-subject design experiment with 4 conditions. I have measured 2 dependet variables, which should correspond to the x- and y-axis of the State Trace Plot.

The columns of my dataset look like this:

  1. column: Participnat ID
  2. column: Condition (1-4)
  3. column: Dependent Variable Index (1-2)
  4. column: Dependent Variable Value (continouous)

all columns are numeric type variables

Upon running the staPLOT function with my data, I get this error message:

"Error in staPLOT(matrix_data_STA) : object 'ys' not found"

Could this be caused by a lack of within-subject conditions in my data set? Is it possible to use functions like staPLOT and staCMR with that kind of data?

Thanks in advance!

— Reply to this email directly, view it on GitHubhttps://github.com/michaelkalish/STA/issues/7, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ABYWFSUNBWFA73TOGWK5Z3DYGSXGBAVCNFSM6AAAAAA74HIET2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAYTENJUGU2DONQ. You are receiving this because you are subscribed to this thread.Message ID: @.***>

benedikt-gailer commented 9 months ago

Update: The problem seemed to be the participant id column: Because I had excluded participants, it looked something like: "1 2 3 6 7 10 ...". Now that I fixed this, everything works. Thank you very much!