rstudio

  1. R

    3 IV, 4 DVs, and a partridge in ...

    I am going back and forth between which data analysis would be best to use for my study. Any thoughts and or recommendations would be greatly appreciated. I am conducting research into the impacts of three independent variables; speaker type, task difficulty, and task format, on the oral speech...
  2. M

    Multivariate analysis for Medicine Thesis

    Hi, I am writing my thesis for medicine about postoperative complications of a disease (IBD). The dependent variable in this case is whether the patients had a post-operative complication or not (binary) within 30 days of their operation. The sample size for my study is n = 62. I have...
  3. S

    RStudio CSV Import of incorrectly formatted data

    Hi everyone, new to the site, hope I'm posting in the right place. Just started using R after a recommendation from my uni tutor in order to process the data from my dissertation experiment. I'm most used to Matlab and the transition has seemed pretty easy so far. I've just finished my...
  4. A

    Error in mlogit package: system is computationally singular

    I have a data set that is formatted according to mlogit's standards using mlogit.data command in Rstudio. Trip SevereEarthquake Night Age Mode 1.NTG 1 0 0 18 FALSE 1.TGNV 1 0 0 18...
  5. W

    Sphericity with unequal sample sizes

    Hello, I want to do a repeated measures anova in R on a data set consisting of four treatments on subjects, over 4 weeks. However, in week 3 I am missing data from a third of the subjects. Does anyone know how I can test for sphericity in R with these missing data points? Many thanks in...
  6. S

    [R] Changing 2 Numeric Variables to 1 Categorical Variable in R?

    I am a finance student and have been playing around in R the past couple of weeks (Rookie here..). QUESTION: I have two numeric variables: A and B. And I want turn these in one cathegorical variable C. C takes the following values: 1 if A and B both score top decile – or quintile of the...
  7. J

    Arguments imply differing number of rows: 1, 0

    I am trying to generate a cdf plot by using ggplot and have looked at some examples online. However when I try to replicate it I get the following error: "arguments imply differing number of rows: 1, 0" I made a search and it seems from what I gather the nrows!=ncol and that doesn't work for a...
  8. E

    Forecasting/Future prediction assistance

    Hi guys, I've got a bit of advertising data here and I'd like to make a model out of it which can predict future events. So I have the amount of money spent, the number of billboards we've got and how many people we think have seen the billboard. We also have the number of walk ins we...
  9. D

    Evaluation of the most suitable model between LASSO and Forward stepwise selection.

    Hello, please take into account this: I'm a beginner :) I need to assess which of the two following specifications of a model is more suitable and explain it. This is what I obtained running properly on R the tools I had: FORWARD STEPWISE SELECTION: LASSO REGRESSION: This shows the...
  10. D

    How do I assess which is the most suitable model?

    Hey everyone, I am making an R project, and I have computed the models using all the methods we've studied in the lectures (particularly Lasso and Forward stepwise selection). In the conclusion, I have to assess which is the most suitable specification model. Could you help me writing...
  11. W

    null models mpd/mntd community data

    hi I am trying to run a null model for some community data and am recieving the same error repeatedly and have been unable to figure it out. i have tried changing the format, doing a smaller subset and various other things but to no avail. the data format recommended is like this ...
  12. L

    R Studio Markdown text formating

    hello there! I am using R studio with R markdown (converting the report to html website). I have one question and I am quite suprised that I couldn't find an answer to it on the web. How do I format text- like justifying, making new paragraph or an indent in the first line of each paragraph?
  13. I

    how to normalize demand/availability matrix for Citibike data

    I am not a statistician but would appreciate an outside perspective on my current project analyzing citibike data. This is a bit complicated so please bear with me. My goal is to determine to what extent bikes are delivered to stations when they need them, that is, the the average amount of...
  14. Z

    Can I use ANOVA on Rstudio using a Likert Scale like questionnaire ?

    Hello, this is my first post on talkstats so hopefully I make sense. I am 'Comparing Interactive verse non-interaction education displays of Insect and Reptile and Amphibian Conservation'. I handed out a questionnaire to three different groups; a control, a group that was part of the...
  15. F

    How do I optimzie association analysis for the rules to make sense?

    I have a dataset of customers, that I want to define a frequent criteria, to paint a picture of an ideal customer. The dataset has the following fields: -email -fullname -Job (title) -company web domain -company description (string data) -company founded (year) -company employees (number)...
  16. N

    [R - Lavaan] Which estimator for confirmatory factor analysis?

    Hi, Currently I am using Rstudio with the Lavaan package in order to perform a confirmatory factor analysis (CFA) on a dataset (N = ~ 700, 23 observed variables, 2 factors). The problem, however, is that the data are not even close to being multivariate normal, with a Mardia's kurtosis of 378...
  17. H

    Car package in R is not loading (it simply blocks R)

    So, I have installed the CAR package in R (with the dependencies) and when I try to load it, it simply blocks the program, it cannot be loaded. I have waited minutes after minutes hoping it will load, but nothing. Moreover, I have to use the Ctrl/Alt/Delete command to end the R Studio...
  18. T

    Mediaton Analysis

    Hey people, I am trying to find an appropriate mediation analysis method. I want to investigate how an INTERACTION of two variables mediates the association of two different variables. I have read about mediation analysis with one or multiple mediators, but nothing about an interaction as the...
  19. G

    Ordering Data

    Hello, everyone! I am still learning to use Statistical softwares and I have a question about R. I have a data table which has one column with 5571 codes, one code in each line. Each code has 7 digits and I need to delete the last digit of each code. I want to know if I can do this in an...
  20. T

    Mediation analysis for two correlated mediators

    Hey people, I am trying to find an appropriate mediation analysis method. I want to investigate how an INTERACTION of two variables mediates the association of two different variables. I have read about mediation analysis with one or multiple mediators, but nothing about an interaction as the...