Questions tagged [robust]

152 questions
3
votes
0 answers

Android does not support robust futexes, so how to implement a robust mutex?

I found the pthread.h in android ndk does not include robust futexes functions, so what should I do if I want to access a shared memory(mmap) between multiple processes? PS: Now, I use std::shared_mutex + fcntl, which the shared_mutex is for thread,…
alpha
  • 1,228
  • 1
  • 11
  • 26
3
votes
3 answers

Find *most* common prefix of strings - a better way?

I have a list of keys ['foo_a','foo_b','foo_c','fnord'] All of the similar solutions here assume that you have no fnord's in your text. I have this code that does the job: def detect_prefix(keys): PCT = 0.70 # cutof pre = '' l =…
Alias_Knagg
  • 886
  • 1
  • 7
  • 21
2
votes
3 answers

C# - try and catch statement uses

Is this good practice to wrap every function with try and catch? I'm building a server in c#, and I'm trying to understand if one of the ways to make it more robust and protected from crashes is to wrap every function in it with try&catch…
Eyal
  • 10,777
  • 18
  • 78
  • 130
2
votes
2 answers

Java - Robustness and Code Reuse

I have a few doubts on java concepts: Is code reuse in java similar to using functions as defined in other programming languages like C? Is Java robust by nature or does it provide a way to write robust code ? Can anyone explain the above two. I…
user654761
  • 117
  • 3
  • 15
2
votes
2 answers

Robust algorithm to assign chaperones to students

Here's the problem: Given 4 groups of students of sizes A, B, C and D, and a total of k chaperones, devise an algorithm for assigning chaperones to students in near-equal proportions. You can't just give the groups k*A/N, k*B/N, k*C/N, k*D/N…
Daniel
  • 944
  • 1
  • 7
  • 24
2
votes
0 answers

robustlmm function rlmer() too slow

I want to conduct a mixed model with robust standard errors in a dataset with 45,000 rows. When I try to run the below code using rlmer() from the robustlmm package, it doesn't produce any result within 10 minutes (and probably longer). Y is…
Benji
  • 207
  • 2
  • 9
2
votes
0 answers

Robust Standard Errors with plm automatically computed?

Today I ran a fixed effects model in plm using unbalanced panel data with N>>T (N=5970 and T=10). Unfortunately the data is from a database that does not allow me to share it. However, my equation is the following: pl <-…
roewizz
  • 21
  • 2
2
votes
1 answer

data.table: Perform efficient row-wise operation on large data.table with columns as input

I have a extremely large data.table with 1.6x10^8 rows and I want to perform a row-wise operation between the columns exposure and exposure.before.index, as seen in my example below. I created the column TI (i.e. Treatment Intensification) that is…
theneil
  • 488
  • 1
  • 4
  • 14
2
votes
1 answer

How to obtain R^2 for robust mixed effect model (rlmer command; robustlmm)?

I estimated a robust mixed effect model with the rlmercommand from the robustlmmpackage. Is there a way to obtain the marginal and conditional R^2 values?
Julian
  • 240
  • 1
  • 8
2
votes
1 answer

Fit models with robust standard errors

I am using the following R code to run several linear regression models and extract results to dataframe: library(tidyverse) library(broom) data <- mtcars outcomes <- c("wt", "mpg", "hp", "disp") exposures <- c("gear", "vs", "am") models <-…
2
votes
2 answers

Robust standard errors for negative binomial regression in R do not match those from Stata

I am replicating a negative binomial regression model in R. When calculating robust standard errors, the output does not match Stata output of standard errors. The original Stata code is nbreg displaced eei lcostofwar cfughh roadskm lpopdensity…
VLarsen
  • 67
  • 1
  • 7
2
votes
0 answers

in R: Error in data.frame(): object '' not found, step.lmRob from 'robust' package

I looked up numerous posts on StackOverflow for question similar to mine one - i.e. it fails to find an object inside a self-defined function that otherwise could be found stepping outside of the function - but still not being able to find a good…
C.Yuen
  • 21
  • 2
2
votes
1 answer

Cluster robust standard errors after multiple imputation using mice R package

I would like to compute cluster robust standard errors using a mids class object. This arise from multiple imputation of missing values in a column of my original data. A minimal example below. library(mice) y <- c(1,0,0,1,1,1,1,0) x <- c(26, 34,…
Caserio
  • 472
  • 1
  • 3
  • 14
2
votes
0 answers

Robust Linear Regression with Caret package in R

I want to fit a robust linear regression with interaction terms in Caret package in R but I obtain the following error: Error in train.default(x, y, weights = w, ...) : Stopping In addition: Warning message: In nominalTrainWorkflow(x = x, y = y,…
EanX
  • 475
  • 4
  • 21
2
votes
1 answer

Bootstrap-t Method for Comparing Trimmed Means in R

I am confused with different robust methods to compare independent means. I found good explanation in statistical textbooks. For example yuen() in case of equal sample sizes. My samples are rather unequal, thus I would like to try a bootstrap-t…
Mac
  • 183
  • 1
  • 13
1
2
3
10 11