# r

1. ### Am I dealing with outliers, or something else (skewness of 106)?

So I have not exactly a homework problem, but I just discovered how fun statistic modelling is, and usually I use already clean datasets. However, I am dealing with a credit default dataset that a lecturer showed me as a challenge. I want to do a logistic regression, a random forest, and XGBoost...
2. ### Alternative to Spearman correlations in R when data is not independent?

Hi everyone, I'm working with a dependent variable which is the number of individuals of an species. The way in which we counted the individuals is along transects, so we have number of individuals in at least 7 plots at different distance from a plantation (from 0-20 m, 20-40 m, 40-60 m, etc)...
3. ### a function created does not work

Hello, I had created a function and I aimed to verify if it complies with certain data and if it was, then it is stored in another variable. data = c(12, 20, 11, 16, 18, 32, 22 , 8) class = function(N){} tabla1= c(1:8) for (i in length(N)){ if (data[i]<21.78){ table1[i]= data[i]...
4. ### Test for Multicollinearity

Hello Talk Stats Forum! I am working on building a Predictive Model using the binary logistic regression and LASSO logistic regression. In order to apply these models on some real data set I am using R software. Before performing such a model I am testing for multicollinearity and will remove...
5. ### [R] Probability of sample proportion given true proportion

Hi everyone, First post here. I am looking for feedback on the results of my analysis of a sample proportion. My aim is to determine the probability of observing a sample proportion given a true proportion. In my example, my true proportion is 0.85 and my sample proportion is 0.82. My sample...
6. ### Estimating Likelihood of NFL Game Outcomes

Hey all, similar to last year, I'm passing along the tracker for the top 4 statistical model trackers for the season. https://tinyurl.com/ybwyffu3 Good news is that they are all at 100% so far...
7. ### How to deal with individual pseudoreplication?

I am trying to deal with pseudoreplication of individuals in my study, and not quite sure how to handle it. I have been trying to account for individuals being sampled multiple times (twice usually) using a GLMM with individual ID as a random intercept. However, I think that the number of ID's...
8. ### Markov chain with covariates

Hi everyone, My first post! :-) I apologize for how long it will be, but please bear with me. I am looking for help in a topic related to Markov chain modeling with covariates. I have a decent knowledge of the underlying theory, but not exactly how to implement some aspects of it in practical...
9. ### I need someone to write me a basic code please!!

Hi, I am learning basic programming with R, and I desperately need someone to write me a PSEUDO code and code for it please: Here's the situation "you have been sentenced to die tomorrow, but you're offered a way out... you get given 12 red balls and 12 blue balls together with two urns...
10. ### GLM question

Hi guys, I have done my GLM model fitting on R and I was wondering if someone could help me with the following question : What is the probability for a male student to be admitted to department B? We have to use 'fit1' to answer the above question but I can't quite figure it out...
11. ### Tukey's HSD following repeated measures ANOVA using ezANOVA package

Hi, I have a longitudinal balanced tendon injury study with two treatment groups of horses (n=6/group) with 5 measurements over 6 mos measured on multiple MRI sequences. I have multiple questions with how I want to analyze this information, but my current question is the most pressing: Below...
12. ### lm for multiple regression hangs up

I'm new to R and came over strictly to do a regression on a dataset with 28 variables and 60k entries (excel limits you to 16 variables). I watched some tutorials, read some guides, then wrote this script with the hope that I would easily get the results: mydata2 <-...
13. ### Feature mapping

Hi all, Is there any pre-built function that can generate the following mapping: 1) Any 2 vectors, say... X1 = seq(-5,10, 0.1) X2 = X1^2 2) For a grade 2 mapping the output would be... out = [ X1 | X2 | X1^2 | X1.X2 | X2^2] (alternatively with one column X0 =1, but this can...
14. ### R to latex

I've recently learned to output R figures and tables as latex code that I can then easily call into a document. Given the popularity of things like the r package knitr out there on the web, I'm curious if people here who write statistical documents, including slides, are users of the various...
15. ### Difference between SPSS and r standard errors in glm Probit analysis?

Hello all, My name is Edwin R. Burgess, I am a Ph.D. candidate in biology at Northern Illinois University. My dissertation is being done on the effects of commonly used filth fly pesticides on parasitic wasp species used for biological control. Right now, I am doing binary mortality response...
16. ### Polynomial regression: how to plot several regression lines on same graph.

Hi there, I am currently working on my thesis which is concerned with abnormality of differences between index scores on an intelligence test. An important factor here are the correlations between indexes. There are 4 indexes, hence 6 possible pairs. Correlations between indexes are provided...