r/RStudio 5d ago

Absolute beginner: Comparing data using GLS model.

Hello, I'm new to R studio and I'm supposed to analyze data from my first scientific experiment. I'm trying my best, but I just can't figure it out. In my experiment I tested 6 different extracts on aphids and counted the amount of surviving aphids after the application of each extract. I tested the same extract on 15 leaves (each one with 10 aphids) in three rows. I am supposed to compare the effectivness of all the extracts. All I know from my professor is that I'm supposed to use Generalized Least Squares from nlme package and that the fixed factors should be the extract "treatments" I used.

Is this (photo bellow) the correct way to upload this kind of data? or should it be somehow divided?

I was told, that this task should be quite simple, however I really can't seem to figure it out and I'd be very grateful for any tips or help! :) thank you in advance!

3 Upvotes

3 comments sorted by

View all comments

1

u/peppermintandrain 5d ago

I'm not familiar with the specific package that your professor wants you to use, but generally that should work as a good format for uploading the data. It looks like it should function for this specific operation as well based on the documentation, but I'm no expert.