Skip to main content

Questions tagged [chi-squared]

Anything related to chi-squared probability distribution or chi-squared statistical test (typically of distribution, independence, or goodness of fit).

1 vote
0 answers
63 views

How to code chi-squared integrand using elementary R functions

I am attempting to write probability density function for 2x2 contingency table with given margins, using chi-squared statistics. I am aware there are easy ways to do this with native R functions, but ...
yuppe's user avatar
  • 41
0 votes
0 answers
15 views

Chi-square power with (heavily) unbalanced proportions [migrated]

I want to calculate the statistical power of a chi-square test with (heavily) unbalanced proportions. I have a variable that I analysed for a sample and whose distribution I know in the population, ...
CNiessen's user avatar
0 votes
0 answers
52 views

Same R script but different results when ran interactively vs automatically

I have an R script that processes a single-cell cds object by assigning hash barcodes to each cell. It outputs p-values, but for some reason I get different pvalues when the same exact script is ran ...
athuyvo's user avatar
-1 votes
1 answer
124 views

How can I use the Google Sheets API to append some data to a new row in a Google Sheet? [closed]

I have a Stats project where we need to collect at least 30 data points each from 4 groups on an online form that I made. Pipedream would be my ideal choice for this, except I only get 100 free ...
RuralAnemone's user avatar
0 votes
0 answers
22 views

RS-232 transfer speed above standard or under standard - how to

I've been trying to analyze how do certain parameters of serial communication (for instance parity, flow control etc.) affect the real transfer speed of RS-232. However, I'm not sure how to judge ...
Van Rhapsody's user avatar
0 votes
0 answers
38 views

Is there an R function to calculate z-value of standardized residuals in chi-square test as in SPSS?

I've been asked to calculate the z-value of standardized residuals in chi-square test, does this make sense? If so, how can it be calculated in R? Example: observed <- matrix(c(30, 10, 20, 15), ...
PaulaV's user avatar
  • 13
0 votes
0 answers
43 views

Chi squared for three different vectors of unequal sample size

I am looking to perform chi-squared on three different vectors which have an unequal sample size. I have tried to do this as both vectors and combing the data in a dataframe but continue to get error ...
Michael Bennett's user avatar
0 votes
1 answer
105 views

Chi-square goodness of fit test Python SciPy

in the SciPy Manual v1.12.0 https://docs.scipy.org/doc/scipy/tutorial/stats.html there is an example for the Chi-square goodness of fit test: import scipy.stats as stats import numpy as np x = stats....
user23209914's user avatar
1 vote
3 answers
71 views

Loop through chisq.test RStudio

I am trying to perform chisquare tests on about 30 variables. I tried to write a for loop to no luck. The loop should also save the p-value of each test. I have used this kind of setup before, in ...
MalinU's user avatar
  • 41
0 votes
0 answers
5 views

non-conformable arrays in chi-square test

hey there can i please get assistance with the following error non-conformable arrays i want to perform a chi-square test but i keep getting an error message Heres a copy of my output : rbind(obs.use, ...
Katlego Kesiloe's user avatar
0 votes
0 answers
21 views

In R, Warning messages: 1: In sum(mhtable[, 1, i]) * sum(mhtable[1, , i]) : NAs produced by integer overflow

I'm trying to do a Cochran-Mantel-Haenzel test to see if sex modifies the relationship between cases (whether someone has a condition) and grandmal (outcome = having grand mal status). head gm # A ...
Yuliya Deni Krushni Nikolayeva's user avatar
0 votes
1 answer
88 views

Confidence Interval for a Chi-Square & T-Student in R

So I have this code in R ... Tabla2 <- tbl_svysummary(data = Beta18.1Pond, by = CTBC, missing = "no", digits = list(all_continuous() ~ c(2,2)), ...
RE2000's user avatar
  • 1
0 votes
0 answers
46 views

Chi squared numeric(0) for some tests

I'm looking at running evolutionary models on some whale data and then determining significance vs. Brownian motion with Chi Squared. It is working for most of my models except 2 and I have no idea ...
Thomas Munro's user avatar
3 votes
1 answer
805 views

How to perform Gray's test with R package tidycmprsk for competing risk data

I have survival data with competing risk (censored 0, relaps 1, death 2) and I want to use Grey's test to check the difference between groups of a variable rh (categories 0, 1 and 2). This is my data: ...
anso_s's user avatar
  • 45
0 votes
0 answers
37 views

SPSS Rao-Scott chi-square when a cell is 0

We are conducting a study in which we analyze data from a survey whith a complex sampling design. Therefore, to determine if there is an association or independence between categorical variables, we ...
Augusto Norte's user avatar

15 30 50 per page
1
2 3 4 5
44