# r studio

1. ### Need Help Finding Whats Stats To Perform

Hi there, I've been given a data set involving a food-training study. In week 1, baseline weight and BMI were recorded for each participant. In week 2, participants underwent four sessions of an online go/no-go response inhibition task. The task involved two treatments: food inhibition and...
2. ### Big data analysis - What statistical method should I use?

I am currently working on my master thesis that is investigating textual factors of "viral headlines". My professor gave me a data set for R that contains about 4.000 packages. Each package has about 3 -5 different headlines of the same article, and their resulting click rate. Somewhat like an...
3. ### R script

This is my R script where i am attempting to perform a wilcox test " dat<-read.csv("204dfos.csv", header=TRUE) dim(dat) names(dat) boxplot(TFfreq, Chronicfreq) help("wilcox.test") wilcox.test(dat$TFfreq, dat$Chronicfreq, paired = TRUE, alternative = “greater”) " For the names (dat) part it...
4. ### General Mixed Effect Model Differences Between R and SPSS

Hello! I have a rather simplistic model which I have been using in SPSS that entails a general mixed effect model explaining a binary outcome. The professor offhandedly mentioned that if I should get this research published, I would want to use R instead of SPSS but she does not know how to work...
5. ### Testing two independent variables (categorical and interval) and interactive effects on continuous data?

Hi, I'm not sure if there is an actual statistical test for this, but I want to see how Side (Left or Right, categorical) and Depth (Interval, fixed at every 250, but I don't have data for all depths) affect a continuous parameter I have. I initially tried a multiple linear regression, I am...
6. ### Longitudinal Mulitlevel Model and Complex Survey Design in R Studio

I'm using multiple waves of the United Kingdom Household Longitudinal Survey (also known as "Understanding Society Survey") and want to use mulilevel models to explore change in health within individuals and between individuals. As far as I understand using a simple two-level model would mean...
7. ### Working with zoo closed population - observation study - Which test?

Our title: Investigating the anticipatory and aggressive behaviour of a captive group of Sulawesi Crested Macaques (Macaca nigra) during different feeding times and enclosure location. Confused as to what stats test to use as > we have 3 independent variables (explanatory as observation) 1)...
8. ### What type of analysis? Ordinal Exposure, Dichotomous Outcome

I have ordered exposure: 4 levels of contamination I have dichotomous outcome: health outcome Yes/No My understanding is that because it is a dichotomous outcome, I should use logistic regression. Should I be using logistic regression like I would if the exposure was continuous? If not, what...
9. ### Comparing Medians

I am comparing water quality levels (continuous variable) in rural areas vs urban areas. The distribution of water quality is not normally distributed. I have 100 samples from the urban areas and 200 samples from the rural areas. From what I have found so far, I can't seem to find a test...
10. ### Best statistical test to encompass all my data for my research?

Hi all, I've been battling for months to work out which statistical test is the best way to make the most out of the data I have. I have been measuring depth related changes in a material. At depths of 2mm (0-2mm, 2mm-4mm etc) for 10 slices I have measured several quantitative parameters. I...
11. ### Probability

HI I have the attached data and would like to calculate: When the Status is Re-Activation what the probability is of it going past 0 Completion Days by looking at the number of times it got 'REJE'(Rejected) and 'N-CO' (Not Complete) but also the time it took for the 'REJE' and 'N-CO' to...
12. ### Simulating a ranking/draft system in R

Trying to simulate a draft/ranking system based on prior, already existing individual team rankings in R. Here is the full link to the question: http://stackoverflow.com/questions/42093872/player-ranking-draft-system-simulate-a-draft-overall-ranking-system-based-on-pa
13. ### I need some help with R. I am a new user and I am struggling to write one script.

Looking up value from data table to summary table based on criteria in other columns. Hi, I am having difficulty with writing a script in R. What I am trying to get is: - I have a list of Product Codes and Product Descriptions. What I am trying to get is the view in table 2 with...
14. ### Simulate Ar(1) process with different y0 values and uniform distribution

I need to plot an Ar(1) graph for the process yk = 0.75yk-1 + ek. for y0=1 and another graph for y0=10. assume ek is uniformly distributed on interval [-0.5,0.5]. i have the following code but i am not sure how to control y0. #----------#Start#---------# rm(list=ls())...
15. ### How to sample permutation in r without repeating permutations in R

Hi guys. I was wondering is it possible to create a matrix or a vector of permutations without repeating them. E.g. create a matrix of 4! = 24 permutations. The way I started is: k <- 4 n <- factorial(k) x <- matrix(NA,nrow= n, ncol =k) for (i in 1:n){ x[i,] <- sample(k)...
16. ### Shiny apps - Facebook data mining using R

Hello everyone, last time I posted one thread about collecting data from Facebook. You can watch the tutorial here https://www.youtube.com/watch?v=sbfAFSPsh-M <iframe width="560" height="315" src="https://www.youtube.com/watch?v=sbfAFSPsh-M" frameborder="0" allowfullscreen></iframe> Now I share...
17. ### r studio

Hi all, I'm using R Studio ( I'm still a novice on R). I'm trying to run the basic data sets that come with the package like the mileage one plot(mtcars$disp, mtcars$mpg) I keep getting the error "error in plot.new(), : figure margins too large" I think the window for my plots might...
18. ### ChAMP Help!!

Hi everyone, I was wondering whether you would be able to help me with ChAMP. I'm working on the software through R studio and having difficulty loading my data. A sample dataset came with the software and no matter what I do, the programme insists on referring back to this dataset rather than...
19. ### Moving Window Principal Component Analysis

Hi, I'm finishing my thesis we're I'm forming currency-hedge investment portfolios out of the PCA on the currencies. I need to do a PCA using a "moving-window" of the previous 60 months of data, throughout my entire data-set. If you want the "pseudo-code" is: -Run PCA using previous...