843 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
0
votes
0
answers
19
views
Which statistical test should be used for multiple-response variables in survey data? [migrated]
Which statistical test should be used for multiple-response variables in survey data?
I am working on an opinion barometer and analysing survey data in R.
For single-choice variables, my approach is :
...
0
votes
2
answers
86
views
Distinguish permission denied from nonexistent files
If you run:
stat /etc/fake_parent/fake_folder/fake_file
then stat will report "No such file or directory". But if you run:
stat /etc/sudoers.d/fake_folder/fake_file
then stat will instead ...
dln385's user avatar
- 12.2k
0
votes
1
answer
99
views
Script looking for a file that doesn't exist
the start of my script is:
for i in **; do
FileName=$i
FileType=$(stat -c %f "$i")
if [ "$FileType" = "41ed" ]; then
FileType="D"
else
...
0
votes
1
answer
161
views
C# on Linux - how to tell if a path is a regular file?
I'm looking at writing C# code equivalent to some existing C logic. The C logic calls stat on a part in order to test if it is a regular file (S_ISREG(st_mode)). How can I do the same check in C# in a ...
0
votes
1
answer
133
views
how to get the file size before closing the process ? pclose()
I want to check the file size ("compressed filesize") before closing the file .pclose()
#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#...
2
votes
2
answers
112
views
Z-Score on Scipy
I need to find out the Zscore pertaining to 1 specific point, that is, for 1 value of X using Scipy.
Below is the manual code:
data = [25, 37, 15, 36, 92, 28, 33, 40]
mean = sum(data)/len(data)
...
-1
votes
1
answer
57
views
PyCharm Linux (flatpack) exception with os.stat on system files
With PyCharm community edition 2024年3月1日.1 under Linux mint i'm get an exception when calling os.stat on system files like "/usr/bin/chromium".
Calling the same script as the same user with ...
2
votes
1
answer
94
views
C++ std::filesystem equivalent of st_blksize from the C stat function?
Is there a C++ std::filesystem equivalent of the C stat() function declared in #include <sys/stat.h> to get info about the st_blksize attribute?
2
votes
1
answer
187
views
How to calculate a sample size for non inferiority test two samples?
I have a test where I want to check whether the install rate of tests group is at least 70% of controls group. To do so I took the following function from Python libraries
alpha = 0.1
power = 0.80
...
0
votes
0
answers
90
views
stat_compare_means() for multiple factors in faceted ggplot data
I am trying to add a p-value (t-test pairwise) across subgroups of data. See the example figure.
The following figure is group into groups and subgroups.
code:
SUAC_cv <- function(x, na.rm = FALSE)...
-2
votes
1
answer
269
views
how to calculate average daily balance - current cycle
I have this data and i want to calculate,
average daily balance - current cycle: 1,595ドル.49.
I try mean median mode and manulay sum / T rows but all results different
fd tr_type amount date ...
0
votes
1
answer
156
views
Friedman test using gtsummary
I'm trying to perform frideman test inside and add_p() function added to tbl_summary()
The problems is that frideman test assumes complete blocks
So I added it as a function to exclued uncomplete ...
2
votes
0
answers
163
views
Good way to understand if file has been just created rather than modified in Linux
I need a way to learn if a file has been just created (rather than e.g. modified). I do it like this:
const bool isCreated =
((f.atime.tv_sec == f.mtime.tv_sec) &&
...
0
votes
2
answers
87
views
rounding to nearst 0 or 5 in n (add_n()) gtsummary outputbale
I need help in rounding the last digit to 0 or 5 in n column from add_n() in my gtsummary output table. any help is much appreciated
library(tidyverse)
library(gtsummary)
round_05 <- function(x) {
...
0
votes
1
answer
75
views
rounding to nearst 0 or 5 in gtsummary outputbale
I need help in rounding the last digit to 0 or 5 in my gtsummary output table. any help is much appreciated
library(tidyverse)
library(gtsummary)
data %>%
tbl_summary(
by = hba1c,
include = -...