Skip to content
Snippets Groups Projects
Commit 6056ca1c authored by Laakso's avatar Laakso
Browse files

uusi palautus

parent 6d9d1fb4
Branches master
No related tags found
No related merge requests found
I wanted to learn how to perform LPA and especially how to draw plots using R.
I chose an article which used the data from my research group, although the data is not openly distributed.
Reference: Ronkainen, I., Lonka, K., Vinni-Laakso, J., Vesterinen, V.-M., & Salmela-Aro, K. (2024). Seitsemäsluokkalaisten kolmeen lukuaineeseen sekä ilmiölähtöiseen oppimiseen kohdistamat arvostukset ja odotukset: Motivaatioprofiilit. Kasvatus, 55(2), 129-149. https://doi.org/10.33348/kvt.126725
I am not sure whether the article is downloadable anymore (it was in fall when I chose it for this assignment) so I added the .pdf in my repo to see the original plots I want to replicate.
1. viewing descriptives of background variables: gender, age, and taloustilanne (recoding taloustilanne)
2. Computing mean sum variables, examining descriptives and correlations
3. LPA and the plots.
This is what I wanted to try to do and especially learn how to draw the plots. And it was not easy.
2. Computing mean sum variables, examining their descriptives and correlations
3. LPA and related plots:
This is what I wanted to learn to do and especially learn how to draw the plots. And it was not easy.
I am newbie with R, so wrangling the data and understanding how it should be wrangled to be able to draw such plots turned out to be difficult.
However, I'm very proud of myself for trying and learning, and I actually managed to draw some kind of LPA plot by myself, though there were some several issues.
Thanks Lauri for helping and explaining, I learned a lot, and the plot is now exactly as in the article. And I am now much more capable and confident with R.
However, I'm very proud of myself for trying and I already learned a lot doing this assignment, and I did actually manage to draw some kind of LPA plot by myself. And elbow plot I made on my own.
Thanks Lauri for helping and explaining, and now the plot is exactly as in the article. And I am much more capable and confident with R.
Will definitely not be using SPSS to analyse data anymore or Excel to draw tables/plots/anything..
Notes.
*My data is slightly different from the article data, as it was not specified in the text which observations were deleted/ignored in the analyses, so my results differ a bit.
*ANOVA, post hocs, crosstables and Chi-square test I've studied previously in another course, so I skip them now, this assignment was for learning new things with R.
*Using GitBash is so difficult. Know
\ No newline at end of file
*My data is slightly different from the article data, as it was not specified in the text which observations were deleted/ignored in the analyses, so my results differ a bit. An insightful assignment in this way also, to indicate that replicating analyses is difficult, or is it that reporting analyses is inadequate?
*I am aware the correlation matrix I made is not similar to article's correlation matrix, but this was not my goal now; drawing APA style tables in R is in my near-future to-learn-with-R-list.
*ANOVA, post hoc, crosstables and Chi-square test I've studied previously in another course, so I skipped them now, this assignment was for learning LPA with R.
*Using GitBash is so difficult. Knowing the commands and almost being able to use them is nice, but from now on I'm going to use git from RStudio.
*Finally just got accepted to GitHub Education and will be able to try using CoPilot, exciting.
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment