id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_78657657
stackoverflow
DATA_SCIENCE
Calculating the locations of the maximum and mean, and the standard deviation between them, with respect to local and absolute maxima, within dataset
Calculating the locations of the maximum and mean, and the standard deviation between them, with respect to local and absolute maxima, within dataset I have multiple datasets of data, for which a compound sigmoid fitting curve is plotted to each. The derivatives of each fit curve are taken, resulting in 6 different th...
https://stackoverflow.com/questions/78657657/calculating-the-locations-of-the-maximum-and-mean-and-the-standard-deviation-be
python, statistics, standard-deviation, model-fitting, sigmoid
1,719,110,686
se_78645816
stackoverflow
DATA_SCIENCE
estimatr::lm_robust() estimating different coefficients from lm()
estimatr::lm_robust() estimating different coefficients from lm() After running a panel model (5475 units, 13 years) with stats::lm(), I've been trying to estimate heteroskedasticity robust standard errors with estimatr::lm_robust(). It turns out that some coefficients estimated are (very) different in each function -...
https://stackoverflow.com/questions/78645816/estimatrlm-robust-estimating-different-coefficients-from-lm
r, statistics, lm
1,718,864,998
se_78647587
stackoverflow
DATA_SCIENCE
How can you generate MCAR, MNAR and MAR missingness pattern in a dataset using python?
How can you generate MCAR, MNAR and MAR missingness pattern in a dataset using python? For MCAR, it is simply missing completely at random, and using random might work for MCAR. Example: reshaped = data.reshape(data.shape[0]*data.shape[1],data.shape[2]) x = reshaped.shape[0] y = reshaped.shape[1] for i in range(0,math...
https://stackoverflow.com/questions/78647587/how-can-you-generate-mcar-mnar-and-mar-missingness-pattern-in-a-dataset-using-p
python, statistics, missing-data
1,718,887,906
se_78640138
stackoverflow
DATA_SCIENCE
Extract a common mean for a split cohort with metafor
Extract a common mean for a split cohort with metafor I want to calculate the mean of a variable X for an entire cohort, which has been divided into several subgroups; therefore, I want to code a Fixed Effect Model, using the mean of X for each subgroup, their respective SD, and respective sample sizes. Is there any w...
https://stackoverflow.com/questions/78640138/extract-a-common-mean-for-a-split-cohort-with-metafor
r, statistics, metafor, meta-analysis
1,718,759,329
se_78634977
stackoverflow
DATA_SCIENCE
P-Value not matching test statistic in Kolmogorov–Smirnov test (stats.kstest)
P-Value not matching test statistic in Kolmogorov–Smirnov test (stats.kstest) I am trying to learn how to use the Kolmogorov–Smirnov test in scipy (stats.kstest). For a simple problem like the example in the documentation, the test statistic for the one sample test seems to be correct, but the p-value does not make se...
https://stackoverflow.com/questions/78634977/p-value-not-matching-test-statistic-in-kolmogorov-smirnov-test-stats-kstest
python, scipy, statistics
1,718,666,300
se_40294844
stackoverflow
DATA_SCIENCE
Calculate T-Student [Test] for different standard Statistical tables in python
Calculate T-Student [Test] for different standard Statistical tables in python I need calculate t-value using (alpha)/2 and df (degrees of freedom) for the next table: https://www.fisterra.com/mbe/investiga/t_student/images/t_stud4.gif test : t(n-1,alpha/2) and (gl = df) I want to compute the value for (alpha/2, df) =...
https://stackoverflow.com/questions/40294844/calculate-t-student-test-for-different-standard-statistical-tables-in-python
python, scipy, statistics, data-science
1,477,605,435
se_8757318
stackoverflow
DATA_SCIENCE
How to monitor number of syscalls executed by kernel?
How to monitor number of syscalls executed by kernel? I need to monitor amount of system calls executed by Linux. I'm aware that vmstat has ability to show this for BSD and AIX systems, but for Linux it can't (according to man page). Is there any counter in /proc? Or is there any other way to monitor it?
https://stackoverflow.com/questions/8757318/how-to-monitor-number-of-syscalls-executed-by-kernel
linux, statistics, kernel, monitoring, system-calls
1,325,850,259
se_78605895
stackoverflow
DATA_SCIENCE
Getting a "NA/NaN/Inf in foreign function call" error when attempting to implement KNN using the class library
Getting a &quot;NA/NaN/Inf in foreign function call&quot; error when attempting to implement KNN using the class library I tried to implement knn using the class package with the following code: KNN_build <- knn(train = who_training, test = who_validation, cl = who_training$Status, k = 5 ) The err...
https://stackoverflow.com/questions/78605895/getting-a-na-nan-inf-in-foreign-function-call-error-when-attempting-to-impleme
r, statistics, knn
1,718,089,711
se_78604335
stackoverflow
DATA_SCIENCE
Bland-Altman plots
Bland-Altman plots I need to make Bland-Altman plots, but I cannot find a good R or Python package for this. So far, I've found a single function in Statsmodels and another one in a package called Pingouin. But neither of these seem to cover the case with proportional bias or heteroskedastic differences. Is there an R...
https://stackoverflow.com/questions/78604335/bland-altman-plots
python, r, statistics, statistical-test
1,718,049,920
se_78605338
stackoverflow
DATA_SCIENCE
representative value of a distribution for Monte Carlo simulation
representative value of a distribution for Monte Carlo simulation I have a monte carlo simulation that samples three independent variables from their respective (continuous and skewed) distribution. I need to fix one variable and only sample from the other two distributions. What fixed value would be the best represen...
https://stackoverflow.com/questions/78605338/representative-value-of-a-distribution-for-monte-carlo-simulation
statistics, sampling, montecarlo
1,718,078,191
se_78603049
stackoverflow
DATA_SCIENCE
Hurdle Poisson Post Estimation - Partial Effects
Hurdle Poisson Post Estimation - Partial Effects I have run a Poisson Hurdle model and I'm using the following syntax for the partial effects for the Zero and the Count part of the model. I'm using the effects package at the moment which may not be compatible with pscl package. I've installed the marginaleffects packa...
https://stackoverflow.com/questions/78603049/hurdle-poisson-post-estimation-partial-effects
r, statistics, margins, poisson
1,718,031,416
se_60658830
stackoverflow
DATA_SCIENCE
Automate the boring stuff - Coin flip streaks
Automate the boring stuff - Coin flip streaks I know there's tons of questions about it by now, even for the same problem, but I think I tried a bit of a different approach. The task is to to 10.000 samples of 100 flips each and then compute the probability of a 6x heads or tails streak over all the samples - as far...
https://stackoverflow.com/questions/60658830/automate-the-boring-stuff-coin-flip-streaks
python-3.x, statistics, coin-flipping
1,584,032,995
se_78603387
stackoverflow
DATA_SCIENCE
Probability of visiting state k at least once during first n steps in finite state Markov Chain
Probability of visiting state k at least once during first n steps in finite state Markov Chain Assuming a Markov Chain of $M$ states, and assuming starting from state $X_0$, I was wondering if there is a method to calculate the probability of visiting state $X_k$ at least once during first n steps. Any help would be ...
https://stackoverflow.com/questions/78603387/probability-of-visiting-state-k-at-least-once-during-first-n-steps-in-finite-sta
statistics, markov-chains, hidden-markov-models, stochastic-process
1,718,035,579
se_78603237
stackoverflow
DATA_SCIENCE
Z-Score as measurement of diverging values
Z-Score as measurement of diverging values I've been trying to use the z-score to filter out odd values in python. For the calculation I've used the version scipy is offering, vs calculating it myself using numpy and the mean and std functions. The result is the same. I thought a p-Value of -1 to 1 should result in 68...
https://stackoverflow.com/questions/78603237/z-score-as-measurement-of-diverging-values
python, scipy, statistics
1,718,033,664
se_78598433
stackoverflow
DATA_SCIENCE
How to calculate the z-score with replicates?
How to calculate the z-score with replicates? I have data from an essay. The assay was performed for 6 different cell culture conditions (columns) and for 6 genes (rows). However, it was also performed 5 times per each gene (for statistical purposes). An example of our data: Genes Condition 1 Condition 2 Gene 1...
https://stackoverflow.com/questions/78598433/how-to-calculate-the-z-score-with-replicates
r, statistics, heatmap, z-score
1,717,932,462
se_78597372
stackoverflow
DATA_SCIENCE
Aggregation Method in Classification
Aggregation Method in Classification There is a set of objects to be classified into n classes. Each class has its own coefficient. For example: class coefficient 1 0.5 2 0.7 N 0.4 I arranged objects into classes and get the set of coefficients. But i need to determine a si...
https://stackoverflow.com/questions/78597372/aggregation-method-in-classification
math, statistics, classification, statistical-test
1,717,896,877
se_78499117
stackoverflow
DATA_SCIENCE
Methods to test independence in a non parametric setting
Methods to test independence in a non parametric setting I am using random forest as my regression model and have the following data where X is a high dimensional data set in a simplex form. I have tried using permutation and the following code: import numpy as np import pandas as pd from sklearn.model_selection impo...
https://stackoverflow.com/questions/78499117/methods-to-test-independence-in-a-non-parametric-setting
python, statistics, random-forest, p-value
1,716,021,423
se_78591807
stackoverflow
DATA_SCIENCE
How to Fix Issues in R Code for Metropolis-Hastings Algorithm Applied to Gumbel Type II Distribution?
How to Fix Issues in R Code for Metropolis-Hastings Algorithm Applied to Gumbel Type II Distribution? I am trying to implement the Metropolis-Hastings (M-H) algorithm in R to sample from the posterior distribution of a Gumbel Type II distribution. However, I'm encountering issues with my implementation, and I'm not ge...
https://stackoverflow.com/questions/78591807/how-to-fix-issues-in-r-code-for-metropolis-hastings-algorithm-applied-to-gumbel
algorithm, statistics, bayesian, inference, mcmc
1,717,761,770
se_78589932
stackoverflow
DATA_SCIENCE
leverage of new predicted value
leverage of new predicted value I would like to find the leverage of the new predicted values in my regression. Below is an example code how would I be able to find the leverage for the 2 new predicted values ? data("mtcars") mod = lm(mpg ~ wt +cyl,data=mtcars) X = model.matrix(mod) # Calculate hat matrix H = X %...
https://stackoverflow.com/questions/78589932/leverage-of-new-predicted-value
r, matrix, statistics, linear-regression
1,717,734,132
se_78501974
stackoverflow
DATA_SCIENCE
How to get pooled mean by group after multiple imputation?
How to get pooled mean by group after multiple imputation? Assume we use the following example from the mice package: imp <- mice(nhanes, m=5, print=FALSE, seed=55152) I want to obtain the means of nhanes$chl grouped by nhanes$hyp. Without using multiple imputation, one would do: library(mice) library(dplyr) nhanes ...
https://stackoverflow.com/questions/78501974/how-to-get-pooled-mean-by-group-after-multiple-imputation
r, statistics, r-mice
1,716,106,624
se_78525705
stackoverflow
DATA_SCIENCE
Getting rao score from MNLogit in statsmodels
Getting rao score from MNLogit in statsmodels I am doing a multinomial linear regression on a set of matrices which are essentially count tables each belonging to a class. My goal is to identify whether these tables are statistically similar or different. From my readings so far, given that my frequency tables have a ...
https://stackoverflow.com/questions/78525705/getting-rao-score-from-mnlogit-in-statsmodels
statistics, logistic-regression, statsmodels
1,716,501,028
se_78580553
stackoverflow
DATA_SCIENCE
EdgeR DGE Matrix: Help Understanding Comparison / Contrast
EdgeR DGE Matrix: Help Understanding Comparison / Contrast I'm doing some differential expression analysis between two conditions (= Timepoint) and I'm including biological covariates in my design. I want to analyse further if differences between Timepoint are different in Men and Women. So this is my design matrix: T...
https://stackoverflow.com/questions/78580553/edger-dge-matrix-help-understanding-comparison-contrast
r, statistics, bioinformatics, glm
1,717,585,626
se_56971901
stackoverflow
DATA_SCIENCE
Statsmodels - use trained arima model to do manual point prediction by explicitly supplying endog values to use
Statsmodels - use trained arima model to do manual point prediction by explicitly supplying endog values to use I am using statsmodels library to deliver a ARIMAX model for forecasting of time series. I have a rather odd question - how do I force trained model to perform a fully manual point forecast by explicitly pro...
https://stackoverflow.com/questions/56971901/statsmodels-use-trained-arima-model-to-do-manual-point-prediction-by-explicitl
python, machine-learning, statistics, statsmodels, arima
1,562,765,667
se_78567833
stackoverflow
DATA_SCIENCE
Error in finding quartiles and outliers in R Studio
Error in finding quartiles and outliers in R Studio So I am doing a university project and I am trying to find outliers in a dataset with 722 rows and 9 columns so there are over 6000 variables. I have been trying many ways: Firstly with Z scores where this happened. z_scores<-(concrete_strength_test-mean(concrete_str...
https://stackoverflow.com/questions/78567833/error-in-finding-quartiles-and-outliers-in-r-studio
r, statistics
1,717,367,051
se_14740373
stackoverflow
DATA_SCIENCE
Design of Experiments (DoE) in Python?
Design of Experiments (DoE) in Python? Is there any module or package available in Python for using Design of Experiments (DoE) methods?
https://stackoverflow.com/questions/14740373/design-of-experiments-doe-in-python
python, statistics
1,360,190,869
se_78573775
stackoverflow
DATA_SCIENCE
Correlation of two vectors - numpy.corrcoef vs convolve method
Correlation of two vectors - numpy.corrcoef vs convolve method I have two numpy arrays and I want to compute their correlation. I'm using the numpy.corrcoef, but I also wanted to do this by applying convolution, but I get completely different results. What am I missing? array1 = np.array([1,3,10,4,2]) array2 = np.arr...
https://stackoverflow.com/questions/78573775/correlation-of-two-vectors-numpy-corrcoef-vs-convolve-method
python, numpy, statistics, signal-processing, convolution
1,717,484,085
se_9990789
stackoverflow
DATA_SCIENCE
How to force zero interception in linear regression?
How to force zero interception in linear regression? I have some more or less linear data of the form: x = [0.1, 0.2, 0.4, 0.6, 0.8, 1.0, 2.0, 4.0, 6.0, 8.0, 10.0, 20.0, 40.0, 60.0, 80.0] y = [0.50505332505407008, 1.1207373784533172, 2.1981844719020001, 3.1746209003398689, 4.2905482471260044, 6.2816226678076958, 11.07...
https://stackoverflow.com/questions/9990789/how-to-force-zero-interception-in-linear-regression
python, numpy, scipy, statistics, linear-regression
1,333,446,312
se_78555637
stackoverflow
DATA_SCIENCE
Bootstrapping a gaussian and best fit data
Bootstrapping a gaussian and best fit data I have the following code which provides the best fit curve for my given data. I am not sure how to bootstrap it and use that to find the 95% confidence interval. This is my code: import numpy as np import matplotlib.pyplot as plt import pylab as plb from scipy.optimize impor...
https://stackoverflow.com/questions/78555637/bootstrapping-a-gaussian-and-best-fit-data
python, statistics, gaussian, bootstrapping, statistics-bootstrap
1,717,079,419
se_78565328
stackoverflow
DATA_SCIENCE
Difference between DSEM and Latent Trajectory with Structured Residuals
Difference between DSEM and Latent Trajectory with Structured Residuals I am having a find time understanding the difference between Dynamic Structural Equation Modelling (Asparouhov et al., 2018) and Latent Trajectory with Structured Residuals (Curran et al., 2014). I am building a model to analyse a trajectory of de...
https://stackoverflow.com/questions/78565328/difference-between-dsem-and-latent-trajectory-with-structured-residuals
statistics, longitudinal
1,717,295,764
se_78562081
stackoverflow
DATA_SCIENCE
Bootstrapped confidence intervals for predicted data shows overlap when fixed effects do not
Bootstrapped confidence intervals for predicted data shows overlap when fixed effects do not Note: This might be more appropriate for Cross Validated, and I'm fine moving it over there if requested, but I thought I would try here first since it could be r-related. I am comparing growth curve parameter estimates betwee...
https://stackoverflow.com/questions/78562081/bootstrapped-confidence-intervals-for-predicted-data-shows-overlap-when-fixed-ef
r, statistics, confidence-interval, statistics-bootstrap, nlme
1,717,188,457
se_78562080
stackoverflow
DATA_SCIENCE
Why is this matrix exactly singular? Trying to create my own contrast matrix but don&#39;t understand the error
Why is this matrix exactly singular? Trying to create my own contrast matrix but don&#39;t understand the error I have six conditions. We can call them A, B, C, D, E, F. I am trying to create a contrast matrix in R. I will use these contrasts in a regression model. #Compare A, B, C to D, E, F contrast1 <- c(1/3, 1/3, ...
https://stackoverflow.com/questions/78562080/why-is-this-matrix-exactly-singular-trying-to-create-my-own-contrast-matrix-but
r, statistics
1,717,188,449
se_76081149
stackoverflow
DATA_SCIENCE
Polyfit for a seasonality model
Polyfit for a seasonality model I am trying to analyze the seasonality of the returns of a stock (but actually could be any kind of time series): On the x axis we have the weeks and on the y axis the historical average return during each week. To better clarify, each dot represents the average return (y axix) of the ...
https://stackoverflow.com/questions/76081149/polyfit-for-a-seasonality-model
numpy, scipy, statistics, time-series
1,682,186,350
se_78560463
stackoverflow
DATA_SCIENCE
Is there a way to deal with factors when graphing a scatterplot matrix?
Is there a way to deal with factors when graphing a scatterplot matrix? So was making a scatter plot matrix and noticed that my scatter plots were giving a series of horizontal lines on one side and vertical lines on the other is there a way to make it look like a clump of letters like using the tvalues or something l...
https://stackoverflow.com/questions/78560463/is-there-a-way-to-deal-with-factors-when-graphing-a-scatterplot-matrix
r, statistics
1,717,163,581
se_78545374
stackoverflow
DATA_SCIENCE
Issue with displaying significance on multiple bar graphs
Issue with displaying significance on multiple bar graphs I am having issues displaying significance values for a t-test on a bar graph containing multiple metabolites. The code I have written is below: my_comparisons <- list(c("0", "50"), c("0", "100"), c("0", "150")) lr1to13p <- ggplot(lr_data_long_1to13, aes(x=Met...
https://stackoverflow.com/questions/78545374/issue-with-displaying-significance-on-multiple-bar-graphs
r, ggplot2, graphics, statistics, t-test
1,716,913,505
se_78544673
stackoverflow
DATA_SCIENCE
Is there a way of creating multiple stratified samples at once?
Is there a way of creating multiple stratified samples at once? Let say I have this input dataset with the Ids: a, b, c I need to order it by packages of +-100 rows each sample with the same distribution of Ids as the input entire population. What would be the best way to do that?
https://stackoverflow.com/questions/78544673/is-there-a-way-of-creating-multiple-stratified-samples-at-once
python, statistics, sample
1,716,905,394
se_68684365
stackoverflow
DATA_SCIENCE
Should an unbalanced variable be used as independent variable in a linear model used for inference statistics?
Should an unbalanced variable be used as independent variable in a linear model used for inference statistics? Hej, Situation: I am trying to create a linear (mixed) model. I know from previous research that a person's sex and disease severity influence the outcome variable. The variable I am interested in is called t...
https://stackoverflow.com/questions/68684365/should-an-unbalanced-variable-be-used-as-independent-variable-in-a-linear-model
r, statistics, regression, lme4, mixed-models
1,628,264,822
se_64350256
stackoverflow
DATA_SCIENCE
Fitting Zero Inflated unknown distibiution to model in python
Fitting Zero Inflated unknown distibiution to model in python I am trying to find out what is the distribution of values of purchases done by consumers. It is Zero Inflated, as most of the consumers do not make any purchase in a given time constrain. I use python. As it is the value of items bought, my data is not des...
https://stackoverflow.com/questions/64350256/fitting-zero-inflated-unknown-distibiution-to-model-in-python
python, statistics, distribution
1,602,667,333
se_25371196
stackoverflow
DATA_SCIENCE
Why are R and Python Mann Whitney different?
Why are R and Python Mann Whitney different? I am wondering why my answers are so different when doing a mann whitney u test in python and in R. In python: from scipy.stats import mannwhitneyu t = [1,2,3] g = [4,5,6,7,8,9] mannwhitneyu(t,g) (0.0, 0.014092901073953692) In R: t = c(1,2,3) g = c(4,5,6,7,8,9) wilcox.t...
https://stackoverflow.com/questions/25371196/why-are-r-and-python-mann-whitney-different
python, r, statistics
1,408,392,251
se_78537297
stackoverflow
DATA_SCIENCE
Is there a way to apply R formula to whole excel sheet
Is there a way to apply R formula to whole excel sheet I have the following code to apply in R: qnorm(0.975)*sqrt(p*(1-p)/n) Typically, I would enter the individual p and n values to get the output. However, I have a lot of data in Excel format, and to save time, I would like to apply the above code to an attached Ex...
https://stackoverflow.com/questions/78537297/is-there-a-way-to-apply-r-formula-to-whole-excel-sheet
r, excel, statistics, analysis, proportions
1,716,787,467
se_78535742
stackoverflow
DATA_SCIENCE
How to correctly do a Multivariate t-Distribution in R
How to correctly do a Multivariate t-Distribution in R I am working on a statistical analysis in R where I need to do a multivariate t-distribution. Each component of my parameter vector 𝛽 β should follow a univariate t-distribution derived from a multivariate setup. The distributions are defined as follows: β has a ...
https://stackoverflow.com/questions/78535742/how-to-correctly-do-a-multivariate-t-distribution-in-r
r, statistics, probability, t-test
1,716,737,995
se_78460880
stackoverflow
DATA_SCIENCE
Getting wrong results after performing paired t-test in R
Getting wrong results after performing paired t-test in R I am trying to perform a paired t-test on the following data: compound day fraction1 fraction2 A 1 3.3 16.5 A 2 1.4 11.2 A 3 2.8 15.3 A 4 0.6 42.4 A 5 0.9 20 A 6 21 43.8 A 7 22 56.5 A 8 1.1 9.6 A 9 2.3 6.5 A 10 0.4 7.1 B 1 1.2 15.4 ...
https://stackoverflow.com/questions/78460880/getting-wrong-results-after-performing-paired-t-test-in-r
r, statistics, t-test
1,715,352,299
se_78471233
stackoverflow
DATA_SCIENCE
Forest Plot or Plotting OddsRatio in a Table
Forest Plot or Plotting OddsRatio in a Table I am trying to report the prevalence's and plot the Odds Ratio in a descriptive table something similar to this Post by R for Health Data Science Book. This creates a forest plot. Since I have other values so I cant use finalfit package but I tried to produce the same table...
https://stackoverflow.com/questions/78471233/forest-plot-or-plotting-oddsratio-in-a-table
r, plot, statistics, regression, forest-plots
1,715,591,956
se_78533364
stackoverflow
DATA_SCIENCE
dmultinom yields a probability of zero
dmultinom yields a probability of zero I am working with dmultinom function from the Stats package in R. I am trying to calculate the probability of observing these values: observed_values <- c(23, 14, 81, 0, 0, 0, 154, 0, 0, 54, 0, 0, 0, 50, 174, 7, 1719, 0, 0, 3, 0, 0, 738, 28, 1653, 17, 77, 2, 44, 242, 59, 0, 0, 23...
https://stackoverflow.com/questions/78533364/dmultinom-yields-a-probability-of-zero
statistics, probability
1,716,661,908
se_78488827
stackoverflow
DATA_SCIENCE
Removing intercept and parameter from ADL model
Removing intercept and parameter from ADL model I have a problem when I'm trying to construct an ADL(1,3) using the dLagM package. The problem is I want to remove both the $X_t$ and the intercept, since both have a p-value over 0.05. But when I'm trying to do it. It either removes the Intercept or the X_t. Therefore I...
https://stackoverflow.com/questions/78488827/removing-intercept-and-parameter-from-adl-model
r, statistics, time-series
1,715,851,153
se_78528288
stackoverflow
DATA_SCIENCE
Visualizing Structural Vector Autoregression (SVAR) in Python gives error shape mismatch
Visualizing Structural Vector Autoregression (SVAR) in Python gives error shape mismatch I am helping a friend with their thesis in statistics and we need to make a SVAR. I have the following output from VAR which I want to use as an input to SVAR (Not sure if that is the correct input) but any input of any dimension ...
https://stackoverflow.com/questions/78528288/visualizing-structural-vector-autoregression-svar-in-python-gives-error-shape
python, statistics, multivariate-time-series, vector-auto-regression
1,716,550,319
se_78472307
stackoverflow
DATA_SCIENCE
Adjusting for sampling weights in table1 in R
Adjusting for sampling weights in table1 in R I would like to write a custom rendering funtcion that shows summary statistics weighted by sampling weights using the table1 package in R. The problem here is that in addition to the vector with the values that the summary statistics are based on, you somehow need to hand...
https://stackoverflow.com/questions/78472307/adjusting-for-sampling-weights-in-table1-in-r
r, statistics, summary
1,715,604,145
se_78519413
stackoverflow
DATA_SCIENCE
Does the order of factor levels matter in a linear mixed effects model?
Does the order of factor levels matter in a linear mixed effects model? I'm running a linear mixed effects model using glmer in R and I have a question about the order of factor levels. My dataset includes two factors: data$interventions with levels c("m1", "f1", "m2", "f2") data$group with levels c("controls", "subje...
https://stackoverflow.com/questions/78519413/does-the-order-of-factor-levels-matter-in-a-linear-mixed-effects-model
r, statistics, lme4
1,716,402,816
se_78516674
stackoverflow
DATA_SCIENCE
matplotlib: precise inset plot location and size with transformations
matplotlib: precise inset plot location and size with transformations I have created a plot with several "inset" axes in matplotlib with the intent of visualizing the meaning of error bars. Please consider the following example: import matplotlib.pyplot as plt from numpy import linspace, random from scipy.stats import...
https://stackoverflow.com/questions/78516674/matplotlib-precise-inset-plot-location-and-size-with-transformations
python, matplotlib, statistics
1,716,371,589
se_78495279
stackoverflow
DATA_SCIENCE
ggcoef_model not displaying all interaction comparisons
ggcoef_model not displaying all interaction comparisons hunger <- sample(x = 0:1, size = 50, replace = TRUE) treat <- sample(x = c("A1","A2"), prob = c(.75, .25), size = 50, replace = TRUE) owner <- sample(x = c("Alice","Ben"), prob = c(.5, .5), size = 50, replace = TRUE) animal <- sample(x = c("dog","cat","cow"), pro...
https://stackoverflow.com/questions/78495279/ggcoef-model-not-displaying-all-interaction-comparisons
r, ggplot2, statistics
1,715,944,538
se_78512204
stackoverflow
DATA_SCIENCE
Panel data from Excel transformation
Panel data from Excel transformation I have data from the WIND terminal with the data structured in rows (even time series information) For example: Ticker Company Name NetProfitGrowth2009 NetProfitGrowth2010 I believe in order to estimate a time series regression I need to transform the data into the panel data so t...
https://stackoverflow.com/questions/78512204/panel-data-from-excel-transformation
r, statistics, stata, panel-data
1,716,297,961
se_78504420
stackoverflow
DATA_SCIENCE
In R, when presenting data (RCT) in a table (preferably gtsummary), how to include tests of significance both within group and between groups? [pic]
In R, when presenting data (RCT) in a table (preferably gtsummary), how to include tests of significance both within group and between groups? [pic] I am learning how to analyse the data and present the results of an RCT using R. I have tried reading the package documentation, and searched online but did not find a so...
https://stackoverflow.com/questions/78504420/in-r-when-presenting-data-rct-in-a-table-preferably-gtsummary-how-to-inclu
r, statistics, gtsummary, gt, medical
1,716,171,831
se_51370292
stackoverflow
DATA_SCIENCE
What exactly does complete in mice do?
What exactly does complete in mice do? I am researching how to use multiple imputation results. The following is my understanding, and please let me know if there're mistakes. Suppose you have a data set with missing values, and you want to conduct a regression analysis. You may perform multiple imputation for m = 5 t...
https://stackoverflow.com/questions/51370292/what-exactly-does-complete-in-mice-do
r, statistics, imputation, r-mice
1,531,776,203
se_78373076
stackoverflow
DATA_SCIENCE
How to get expected %ages with CIs for different possible responses from svy_vglm in svyVGAM?
How to get expected %ages with CIs for different possible responses from svy_vglm in svyVGAM? I am looking to calculate survey-weighted percentages for categorical outcomes using the svy_vglm function of svyVGAM. For example, if the categorical variable could be A, B, or C, I simply want to estimate the weighted, popu...
https://stackoverflow.com/questions/78373076/how-to-get-expected-ages-with-cis-for-different-possible-responses-from-svy-vgl
r, statistics, survey, marginal-effects, weighting
1,713,881,961
se_64664345
stackoverflow
DATA_SCIENCE
Azure Synapse: Can&#39;t drop column due to it has dependent statistics
Azure Synapse: Can&#39;t drop column due to it has dependent statistics We use Azure Synapse Analytics. When trying to drop a column ALTER table my_table drop COLUMN my_column it says that: The statistics 'Stat_616f789ac8c54c449f7910cb3bcb3810' is dependent on column 'my_column'. But I had no luck in finding said sta...
https://stackoverflow.com/questions/64664345/azure-synapse-cant-drop-column-due-to-it-has-dependent-statistics
statistics, azure-synapse
1,604,412,161
se_55667710
stackoverflow
DATA_SCIENCE
How do I generate data with specified mean, variance, skewness, kurtosis in Python?
How do I generate data with specified mean, variance, skewness, kurtosis in Python? I want to generate data in Python that behaves like real stock market data, which means I need to be able to specify and play around with all of the first four moments. Only being able to control skewness or only kurtosis is unfortunat...
https://stackoverflow.com/questions/55667710/how-do-i-generate-data-with-specified-mean-variance-skewness-kurtosis-in-pyth
python, statistics, simulation
1,555,173,760
se_78478253
stackoverflow
DATA_SCIENCE
Running multiple ICCs on one dataframe in R
Running multiple ICCs on one dataframe in R I'm trying to calculate multiple ICCs from a data frame created in R. The data frame contains over 2500 observations from 122 different persons. I need an ICC calculated for each person. Creating a separate data frame for one person, I am able to calculate the ICC using the ...
https://stackoverflow.com/questions/78478253/running-multiple-iccs-on-one-dataframe-in-r
r, dataframe, statistics, icc
1,715,691,372
se_47570903
stackoverflow
DATA_SCIENCE
Confidence interval for the difference between two proportions in Python
Confidence interval for the difference between two proportions in Python For example, in an AB test the A population could have 1000 data points, of which 100 are successes. While B could have 2000 data points and 220 successes. This gives A a success proportion of 0.1 and B 0.11, the delta of which is 0.01. How can I...
https://stackoverflow.com/questions/47570903/confidence-interval-for-the-difference-between-two-proportions-in-python
python, statistics, confidence-interval, ab-testing
1,512,036,920
se_78486340
stackoverflow
DATA_SCIENCE
How can I improve my R code for a two-way repeated measures ANOVA to produce the correct degrees of freedom?
How can I improve my R code for a two-way repeated measures ANOVA to produce the correct degrees of freedom? I am running a two-way repeated measures ANOVA in rstudio and I find that the output of the analysis produces some strange degrees of freedom and I worry that the analysis is not accurate as a result. My residu...
https://stackoverflow.com/questions/78486340/how-can-i-improve-my-r-code-for-a-two-way-repeated-measures-anova-to-produce-the
r, statistics
1,715,804,572
se_78481172
stackoverflow
DATA_SCIENCE
Why is predict.lm giving a vector with a different length than the dataset i parse?
Why is predict.lm giving a vector with a different length than the dataset i parse? I have separated a dataset between train and test like this. By selecting the 80%th index of rows and spliting it. # Eliminamos variables no útiles df <- df[,!(colnames(df) %in% c("sqm_lot", "sqm_lot15"))] df_train <- df[1:as.integer(...
https://stackoverflow.com/questions/78481172/why-is-predict-lm-giving-a-vector-with-a-different-length-than-the-dataset-i-par
r, statistics
1,715,733,641
se_78463894
stackoverflow
DATA_SCIENCE
How to get mean/average line of multiple points (with different x-axis values) using R (or Excel)?
How to get mean/average line of multiple points (with different x-axis values) using R (or Excel)? I have two dataframes (fire2022_12 and fire2021_12) with the same three columns (variable, x, y). I have pasted a snippet from the top of these dataframes below. I can plot these two dataframes in the same plot just fine...
https://stackoverflow.com/questions/78463894/how-to-get-mean-average-line-of-multiple-points-with-different-x-axis-values-u
r, ggplot2, statistics, visualization, mean
1,715,415,956
se_78460550
stackoverflow
DATA_SCIENCE
Compute R Squared by Fixing Betas for Multi Linear Regression without Intercept
Compute R Squared by Fixing Betas for Multi Linear Regression without Intercept I want to fix the betas in multi linear regression based on some data I have, which leads to a RSquare value less than 0% and greater than 100 % based on the projection approach mentioned in Tibshirani, Hastie et. all book. What's the best...
https://stackoverflow.com/questions/78460550/compute-r-squared-by-fixing-betas-for-multi-linear-regression-without-intercept
pandas, numpy, statistics, regression, statsmodels
1,715,348,675
se_78461776
stackoverflow
DATA_SCIENCE
Specific variables and simulating correlated data by using copulas
Specific variables and simulating correlated data by using copulas I want to simulate correlated data by using copulas, and I found this page, where they: Simulate correlated multivariate normal data from a correlation matrix. The marginal distributions are all standard normal. Use the standard normal CDF to transfor...
https://stackoverflow.com/questions/78461776/specific-variables-and-simulating-correlated-data-by-using-copulas
r, statistics, correlation, copula
1,715,362,805
se_78456581
stackoverflow
DATA_SCIENCE
What causes this bug in mvtnorm package in R?
What causes this bug in mvtnorm package in R? I am conducting some nonlinear optimization using multivariate probabilities as my objective function. I've spent hours thinking I had issue with the optimization algorithm, but actually I've tracked the bug down to the use of the mvtnorm package. Code library(mvtnorm) pmv...
https://stackoverflow.com/questions/78456581/what-causes-this-bug-in-mvtnorm-package-in-r
r, package, statistics, probability-distribution
1,715,282,398
se_52326174
stackoverflow
DATA_SCIENCE
How to calculate correlation between binary variables in python?
How to calculate correlation between binary variables in python? Two binary variables (x and y) form two columns for a number of dates in a pandas Dataframe. I want to calculate a correlation score between x and y that quantifies how correlated x=1 is with y=1 ( x=0 with y=0). What definition of correlation is approp...
https://stackoverflow.com/questions/52326174/how-to-calculate-correlation-between-binary-variables-in-python
python, pandas, statistics, correlation
1,536,906,869
se_73031395
stackoverflow
DATA_SCIENCE
Accuracy Ratio (Gini coef) computation in Python by Definition and ROC Method
Accuracy Ratio (Gini coef) computation in Python by Definition and ROC Method Why do the following methods of computing the accuracy ratio give different results? Approach 1: Cumulative Accuracy Profile (CAP) curve The accuracy ratio is computed from definition as the difference between the area under curve of the CAP...
https://stackoverflow.com/questions/73031395/accuracy-ratio-gini-coef-computation-in-python-by-definition-and-roc-method
python-3.x, machine-learning, scikit-learn, statistics, gini
1,658,207,387
se_78437177
stackoverflow
DATA_SCIENCE
Matplotlib Histogram data automatically grouped
Matplotlib Histogram data automatically grouped Normal-Distribution A normal distribution is generated as seen below. Image It works by working out the amount of times heads is flipped when you flip the coin 10 times. It then repeats 10 flips 100K times. The result is a normal distribution showing the distribution of ...
https://stackoverflow.com/questions/78437177/matplotlib-histogram-data-automatically-grouped
python, loops, matplotlib, math, statistics
1,715,004,390
se_78435585
stackoverflow
DATA_SCIENCE
How to get statistics only for complete iterations of samplers in a thread group?
How to get statistics only for complete iterations of samplers in a thread group? I have a thread group that consists of several samplers. I run a test on this thread group with a finite thread lifetime. The result I see in the aggregate report is that the number of samples run by each sampler decreases from top to bo...
https://stackoverflow.com/questions/78435585/how-to-get-statistics-only-for-complete-iterations-of-samplers-in-a-thread-group
jmeter, statistics
1,714,986,059
se_78135884
stackoverflow
DATA_SCIENCE
Computing empirical Beta in a given distribution
Computing empirical Beta in a given distribution I have to calculate an empirical β and compare it with the theoretical one by measuring the difference. This is the model to develop the new code: if (!require("pwr")) install.packages("pwr") # parameters N=1000 n = 25 k = 500 a_teo = 0.05 #Here we create the universe...
https://stackoverflow.com/questions/78135884/computing-empirical-beta-in-a-given-distribution
r, statistics, beta
1,710,074,204
se_78208689
stackoverflow
DATA_SCIENCE
How does emmeans adjust the p-values when using &quot;Tukey&quot; as adjustment method?
How does emmeans adjust the p-values when using &quot;Tukey&quot; as adjustment method? I want to calculate a critical difference for my pairwise comparisons. For this I need to understand how the p-values are adjusted, since I want to have the tukey method active. I was able to reconstruct the T-Statistics calculatio...
https://stackoverflow.com/questions/78208689/how-does-emmeans-adjust-the-p-values-when-using-tukey-as-adjustment-method
r, statistics, p-value, emmeans, tukey
1,711,139,159
se_78341239
stackoverflow
DATA_SCIENCE
TypeError: ufunc &#39;isnan&#39; not supported for the input types - while performing Mann-Whitney U test
TypeError: ufunc &#39;isnan&#39; not supported for the input types - while performing Mann-Whitney U test I have two data frames,primary_tumor_df and healthy_tissue_df to perform the Mann-Whitney U test. I have also removed nan values from both the data frames. Structure of primary_tumor_df. Structure of healthy_tiss...
https://stackoverflow.com/questions/78341239/typeerror-ufunc-isnan-not-supported-for-the-input-types-while-performing-ma
python, pandas, numpy, scipy, statistics
1,713,359,509
se_78427146
stackoverflow
DATA_SCIENCE
How to use Pearson&#39;s correlation in boostrap in python?
How to use Pearson&#39;s correlation in boostrap in python? I have task to do in python. Here is the description: Using the function scipy.stats.bootstrap(), perform interval estimation of the following parameters at a significance level of 1-alpha = 0.98 based on the variable sample_2: Pearson correlation coefficien...
https://stackoverflow.com/questions/78427146/how-to-use-pearsons-correlation-in-boostrap-in-python
python, statistics, correlation, statistics-bootstrap, pearson-correlation
1,714,774,165
se_78426352
stackoverflow
DATA_SCIENCE
Predict new values using mixed model using lme() in R
Predict new values using mixed model using lme() in R I have the following data: str(growth_data) tibble [92 × 4] (S3: tbl_df/tbl/data.frame) $ person: num [1:92] 1 1 1 1 2 2 2 2 3 3 ... $ gender: chr [1:92] "F" "F" "F" "F" ... $ growth: num [1:92] 21 20 21.5 23 21 21.5 24 25.5 20.5 24 ... $ age : Factor w/ 4 le...
https://stackoverflow.com/questions/78426352/predict-new-values-using-mixed-model-using-lme-in-r
r, statistics, mixed-models, nlme
1,714,760,141
se_78427795
stackoverflow
DATA_SCIENCE
How do I calculate weighted average of dates?
How do I calculate weighted average of dates? The context for this question is that say I have 200 dollars locked up that will be paid back to me each month for a varying amount of money with the final payment taking pace on the 4th year. I'm NOT trying to determine the present value of the 200 dollars BUT rather the ...
https://stackoverflow.com/questions/78427795/how-do-i-calculate-weighted-average-of-dates
excel, statistics, probability
1,714,797,802
se_77157977
stackoverflow
DATA_SCIENCE
Calculate the std dev in python
Calculate the std dev in python I have the following list: daily_climb = [30, 21, 33, 77, 44, 45, 23, 45, 12, 34, 55] Which represents in cm the daily climb of a snail. The snail reaches the top of the well at 125cm Every night, the snail slides down 20cm What is the standard deviation of its displacement considering...
https://stackoverflow.com/questions/77157977/calculate-the-std-dev-in-python
python, statistics
1,695,388,700
se_78419502
stackoverflow
DATA_SCIENCE
Writing python function - I made a condition but it is wrong
Writing python function - I made a condition but it is wrong The population of healthy people is equal to 150, while the population of sick people is equal to 120. Every day, 20% of healthy people get sick and 10% of sick people get healthy. Please write a function in the Python programming language that will calculat...
https://stackoverflow.com/questions/78419502/writing-python-function-i-made-a-condition-but-it-is-wrong
python, function, math, statistics
1,714,656,614
se_78418574
stackoverflow
DATA_SCIENCE
Fitting S-curve to my data - unable to adjust parameters to steepen curve
Fitting S-curve to my data - unable to adjust parameters to steepen curve I am working with the following code: import numpy as np import matplotlib.pyplot as plt from scipy.optimize import curve_fit def logistic(x, a, b, c, d=0): """ Logistic function that maps x to a value between two asymptotes d and c. ...
https://stackoverflow.com/questions/78418574/fitting-s-curve-to-my-data-unable-to-adjust-parameters-to-steepen-curve
python, statistics
1,714,646,487
se_78413728
stackoverflow
DATA_SCIENCE
Integral form of cdf in Python
Integral form of cdf in Python I want to use a mathematical model of this kind. How do I find the exact integral form of cdf(x) which Python uses in this context? from scipy import stats def model(x, x0, s, A, c): law = stats.norm(loc=x0, scale=s) return A * law.cdf(x) + c
https://stackoverflow.com/questions/78413728/integral-form-of-cdf-in-python
python, statistics
1,714,566,603
se_78393252
stackoverflow
DATA_SCIENCE
How can i run the code for a sample of 5000 without taking forever
How can i run the code for a sample of 5000 without taking forever I'm working on estimating Maximum Likelihood Estimators (MLE) for a beta distribution using 5000 samples, each with 100 data points. However, my current implementation takes a long time to run. This is the code i'm using: def U_score(x, theta): a =...
https://stackoverflow.com/questions/78393252/how-can-i-run-the-code-for-a-sample-of-5000-without-taking-forever
python, for-loop, optimization, statistics
1,714,171,571
se_65900617
stackoverflow
DATA_SCIENCE
Can Cytoscape calculate centrality?
Can Cytoscape calculate centrality? does somebody know whether Cytoscape can calculate statistical numbers like centrality (degree, betweenness centrality, closeness centrality), denity and clique analysis? Thank you in advance!
https://stackoverflow.com/questions/65900617/can-cytoscape-calculate-centrality
statistics, cytoscape, sna
1,611,661,018
se_78404854
stackoverflow
DATA_SCIENCE
Subclassing scipy.stats.rv_continuous for truncated distribution
Subclassing scipy.stats.rv_continuous for truncated distribution I would like to create a random variable from a truncated complementary error function. For this I want to subclass scipy.stats.rv_continuous. I have checked Subclassing scipy's continuous distributions and written the following code using Python 3.8.5...
https://stackoverflow.com/questions/78404854/subclassing-scipy-stats-rv-continuous-for-truncated-distribution
python, scipy, statistics, scipy.stats
1,714,419,777
se_78340199
stackoverflow
DATA_SCIENCE
Using age as &#39;timescale&#39; for Cox Model in lifelines [Python]?
Using age as &#39;timescale&#39; for Cox Model in lifelines [Python]? I came across several methods of defining the timescale when performing a cox regression. The two main ones are: time in study age of participant Example of time-on-study as the time-scale: o=censored X=event ------------------------------o 36 mon...
https://stackoverflow.com/questions/78340199/using-age-as-timescale-for-cox-model-in-lifelines-python
python, statistics, survival-analysis, lifelines
1,713,348,954
se_78401792
stackoverflow
DATA_SCIENCE
Handling Long Category Names in Visualizations of Categorical Variables in Python
Handling Long Category Names in Visualizations of Categorical Variables in Python I'm working with a pandas DataFrame that contains categorical variables, some of which have values with long names. However, some of my categorical features have values with long names, causing the labels to overlap and making the plots ...
https://stackoverflow.com/questions/78401792/handling-long-category-names-in-visualizations-of-categorical-variables-in-pytho
python, pandas, list, plot, statistics
1,714,383,665
se_67216690
stackoverflow
DATA_SCIENCE
Knowing which distance metric to use for &#39;color differences&#39; in pixels (RGB)
Knowing which distance metric to use for &#39;color differences&#39; in pixels (RGB) Currently, I'm using grayscaling to compare pixels, which is not really ideal I think since it loses a ton of information. What are some common algorithms for doing this? Is Euclidean distance, for example, generally considered a good...
https://stackoverflow.com/questions/67216690/knowing-which-distance-metric-to-use-for-color-differences-in-pixels-rgb
python, opencv, image-processing, statistics, distance
1,619,106,712
se_4205428
stackoverflow
DATA_SCIENCE
Show standard devation using geom_smooth and ggplot
Show standard devation using geom_smooth and ggplot We have some data which represents many model runs under different scenarios. For a single scenario, we'd like to display the smoothed mean, with the filled areas representing standard deviation at a particular point in time, rather than the quality of the fit of smo...
https://stackoverflow.com/questions/4205428/show-standard-devation-using-geom-smooth-and-ggplot
r, statistics, ggplot2
1,290,004,492
se_78392578
stackoverflow
DATA_SCIENCE
What is the standard deviation/uncertainty of a single observation in a meta-analysis?
What is the standard deviation/uncertainty of a single observation in a meta-analysis? I am running a simulation with parameters based on an existing random-effects meta-analysis. I would like to draw individual patients in the treatment group from a normal distribution with µ=the overall estimated treatment effect fr...
https://stackoverflow.com/questions/78392578/what-is-the-standard-deviation-uncertainty-of-a-single-observation-in-a-meta-ana
statistics, simulation, standard-deviation, variance, meta-analysis
1,714,158,660
se_78389349
stackoverflow
DATA_SCIENCE
How to represent a model fitted using spline transformer + linear regression in an mathematical equation. The data is high dimensional
How to represent a model fitted using spline transformer + linear regression in an mathematical equation. The data is high dimensional I have a dataset consisting of 5 features and 1 target. I am using a spline transformer to transform the features and then fit it using linear regression. I am fitting the data with 1s...
https://stackoverflow.com/questions/78389349/how-to-represent-a-model-fitted-using-spline-transformer-linear-regression-in
python, machine-learning, statistics, linear-regression, spline
1,714,122,141
se_78385489
stackoverflow
DATA_SCIENCE
How to aggregate JSON data as expected?
How to aggregate JSON data as expected? I have response text from API as below, I want aggregate them to new format response. But it is quite difficult, please help me (using JavaScript) Response from API: [ { sumTime: "2024-04-25 12:00:00", equipParaName: "P1", sumValue: 5 }, { sumTime: "2024-04...
https://stackoverflow.com/questions/78385489/how-to-aggregate-json-data-as-expected
javascript, json, statistics, aggregate
1,714,056,890
se_78376908
stackoverflow
DATA_SCIENCE
How to make Matching Algorithm more efficent in Python
How to make Matching Algorithm more efficent in Python I've developed a Python script to calculate match scores between users based on their locations. The script generates combinations of users, calculates the average weight for each combination, computes the standard deviation of weights, and finally assigns a score...
https://stackoverflow.com/questions/78376908/how-to-make-matching-algorithm-more-efficent-in-python
python, algorithm, performance, statistics, combinations
1,713,946,661
se_78374064
stackoverflow
DATA_SCIENCE
Vuong test for non-nested linear mixed-effect regession model (lme4), using the nonnest2 library
Vuong test for non-nested linear mixed-effect regession model (lme4), using the nonnest2 library I would like to compare a pair of non-nested models that I fit using lme4 in R. I would like to apply the Vuong test (1989) for that. It seems like the nonnest2 package is the only one that supports models from lme4. Howev...
https://stackoverflow.com/questions/78374064/vuong-test-for-non-nested-linear-mixed-effect-regession-model-lme4-using-the
r, statistics, ram, lme4, model-comparison
1,713,892,435
se_7718034
stackoverflow
DATA_SCIENCE
Maximum Likelihood Estimate pseudocode
Maximum Likelihood Estimate pseudocode I need to code a Maximum Likelihood Estimator to estimate the mean and variance of some toy data. I have a vector with 100 samples, created with numpy.random.randn(100). The data should have zero mean and unit variance Gaussian distribution. I checked Wikipedia and some extra s...
https://stackoverflow.com/questions/7718034/maximum-likelihood-estimate-pseudocode
python, statistics, machine-learning, pseudocode
1,318,277,145
se_53043850
stackoverflow
DATA_SCIENCE
Box-plot R calculating outliers
Box-plot R calculating outliers > summary(mydata) Min. 1st Qu. Median Mean 3rd Qu. Max. 0 93 107 110 125 197 > range=1.5*(125-93) > upper_whisker=125+range > lower_whisker=93-range > upper_whisker [1] 173 > lower_whisker [1] 45 > boxplot(mydata)$stats [,1] [1,] 56 #Lower whisker by...
https://stackoverflow.com/questions/53043850/box-plot-r-calculating-outliers
r, statistics, boxplot
1,540,810,040
se_78037758
stackoverflow
DATA_SCIENCE
How to save diagnostic plots from easystats to a file from a script
How to save diagnostic plots from easystats to a file from a script A month ago, I posted this question and I was able to solve it myself; however, after doing an update (easystats::easystats_update()), it no longer works. Therefore, my question remains the same: how can I save the diagnostics plot that is the output ...
https://stackoverflow.com/questions/78037758/how-to-save-diagnostic-plots-from-easystats-to-a-file-from-a-script
r, ggplot2, plot, statistics, ggsave
1,708,560,458
se_73235152
stackoverflow
DATA_SCIENCE
R: how to compute a power analysis based on a wilcoxon test for paired observations (Wilcoxon signed-rank test)
R: how to compute a power analysis based on a wilcoxon test for paired observations (Wilcoxon signed-rank test) I want to know if my study and my statistical test is powerful. I have 16 subjects, all of them took both treatment1 and treatment2. I want to know if the study is powerful by conducting a power analysis to ...
https://stackoverflow.com/questions/73235152/r-how-to-compute-a-power-analysis-based-on-a-wilcoxon-test-for-paired-observati
r, statistics, statistical-test, pairwise.wilcox.test, power-analysis
1,659,612,490
se_78369180
stackoverflow
DATA_SCIENCE
Spotfire - Flagging a process that is out of control
Spotfire - Flagging a process that is out of control I have a data set with hundreds of jobs over a year time frame with the date it ran and the run time. Each job has a run time and I'm trying to detect drifts when they occur by work week. So if I have 4 consecutive weeks where the week median is above or below the o...
https://stackoverflow.com/questions/78369180/spotfire-flagging-a-process-that-is-out-of-control
statistics, spotfire
1,713,826,141
se_78368764
stackoverflow
DATA_SCIENCE
Multiple polynomial regression in C#
Multiple polynomial regression in C# So I need to fit some vectorized data into a 3rd degree polynomial, however I can't find any libraries in C# that are able to do that. Essentially, x is a vector with 3 elements ([R, G, B]), and the final equation for the model is as follows: I need to obtain the l0, l1, l2, ..., ...
https://stackoverflow.com/questions/78368764/multiple-polynomial-regression-in-c
c#, statistics, regression, numeric, algebra
1,713,818,387
se_78365479
stackoverflow
DATA_SCIENCE
Logistic regression resulting in &quot;eval(family$initialize) : y values must be 0 &lt;= y &lt;= 1&quot;?
Logistic regression resulting in &quot;eval(family$initialize) : y values must be 0 &lt;= y &lt;= 1&quot;? Keep in mind that I'm very new to regression (not necessarily R as a language, but I'm no expert). I am using a data set called MidCity and I am supposed to determine whether or not brick homes are more expensive...
https://stackoverflow.com/questions/78365479/logistic-regression-resulting-in-evalfamilyinitialize-y-values-must-be-0
r, statistics, regression, linear-regression, logistic-regression
1,713,780,913
se_78357085
stackoverflow
DATA_SCIENCE
Welford Variance Differs from Numpy Variance
Welford Variance Differs from Numpy Variance I want to use Welford's method to compute a running variance and mean. I came across this implementation of Welford's method in Python. However, when testing to double-check that it results in the same output as the standard Numpy implementation of calculating variance, I d...
https://stackoverflow.com/questions/78357085/welford-variance-differs-from-numpy-variance
python, numpy, statistics, numerical-methods
1,713,590,930
se_78344296
stackoverflow
DATA_SCIENCE
If there is a way to get commit log information online with out clone the whole repository?
If there is a way to get commit log information online with out clone the whole repository? There are many git repositories on my gitlab server, and I want to statistics their commit information. I have to clone every repository and run git log command within the directory. Its very slow and might damage my hard disks...
https://stackoverflow.com/questions/78344296/if-there-is-a-way-to-get-commit-log-information-online-with-out-clone-the-whole
git, gitlab, statistics, commit
1,713,400,485
se_78356226
stackoverflow
DATA_SCIENCE
How to do Bayesian MCMC with Compositional Parameter Constraints
How to do Bayesian MCMC with Compositional Parameter Constraints So I know that if you have parameter constraints and you were to do a random walk MH without them, you can use a truncated normal distribution as your proposal instead (and of course, this would be reflected in the Hasting ratio as symmetry is lost). But...
https://stackoverflow.com/questions/78356226/how-to-do-bayesian-mcmc-with-compositional-parameter-constraints
statistics, mcmc
1,713,561,934
se_78346077
stackoverflow
DATA_SCIENCE
Gauss milton Newton
Gauss milton Newton This is my code. I don't know what the problem is; it's giving me results that don't make sense, The code begins by initializing the simulation parameters, such as the sample size (N), the number of repetitions (Nr), the number of dimensions for the points P, and the coordinates of different target...
https://stackoverflow.com/questions/78346077/gauss-milton-newton
arrays, algorithm, matlab, math, statistics
1,713,429,953