instruction
stringlengths
9
38.7k
Is there the relation between confidence and order of association rule when I am applying Apriori algorithm? Or is it dependent on the dataset? Disclaimer: This is based on a homework question. The dataset we are given has increasing confidence with increasing order of association rule. I wonder if this is true for all...
I'm reading High-Dimensional Statistics by Wainright. In the book, entropy for random variable $Z \geq 0$ is defined as $H(Z) = E[Z \log Z]- E[Z] \log E[Z]$. My understanding is that $H(Z)$ is a constant, not a random variable. Next, for $f \colon \mathbb{R}^n \to \mathbb{R}$, and $k \in \{1,\ldots, n\}$, we define the...
I have this question regarding 4 data sets where one of the data sets is missing half of the data. The data is relatively correlated, but not perfectly. How may we construct a model to produce the fourth data source’s missing data? Suppose this data is generally upward trending with seasonal cycles, as well as a large ...
I am having a hard time understanding simple linear regression. I got to a point, in this website to which I can see the closest answer to my question : To minimize our error function, S, we must find where the first derivative of S is equal to 0 concerning a and b. The closer a and b are to 0, the less total error for...
I'd like to check if there are correlation among predicted probabilities of models in a voting classifier. According to the table below, one of models, Model5, has mean 40.9% and standard deviation 46.29% which is prominently different from that of other models. My Question is that since the predicted probabilities alr...
For the ordinary least square (OLS) estimates of regression ($\vec{y} =\mathbf{X} \cdot \vec{\beta} + \vec{\epsilon}$) to be unbiased (without considering the efficiency), which one of the three conditions is required (sufficient): $$\mathbb{E}(\vec{\epsilon}) = \vec{0} \tag{Assumption 1}$$ $$\mathbb{E}(\vec{\epsilon}...
I have been trying on comparing to time series, one predicted and one measured. One of the first and most simplistic statistics that can help is R2. I have no issues calculating R2 but my supervisor suggested to first normalize both time series such that the daily trend is removed and then calculate the R2. I am wonde...
First time posting here. I am collaborating on a meta-analysis investigating the association between fatigue (in a specific clinical population) and cognition. I have done a few meta's before so I am at an intermediate level at conducting them however I am not able to find clarification to this question. For studies we...
In short: I am looking for a loss function that prioritizes the size of the segmentation over the location of the segmentation. We are using a modified U-Net to segment an event on two time based inputs. The segmentation starts at the event on input 1 and ends on the event of input 2. The thing that matters in the end ...
I am currently working on analyzing a substantial dataset using generalized mixed-effect models. The dataset has a 3-level structure: 400,000 individuals nested within 500 neighborhoods, which are further nested within 30 regions. I have attempted to perform the analysis using various software platforms including R's l...
To decode an HMM, the usual approach is use the Viterbi algorithm where the probability of the most likely sequence of hidden states $z_1,..,z_n$ generating the observations $y_1,..,y_n$ is given by: \begin{equation} \delta(z_n)=\max_{z_1,z_2,..,z_{n-1}}p(y_1,..,y_n,z_1,..,z_n) \end{equation} However this paper use...
I'm planning to conduct an experiment, where I have four IVs. $IV_{1}$ to $IV_{3}$ have 3 levels each, and $IV_{4}$ has 2 levels. I want to apply d-optimal design here, because the full factorial experiment costs a lot (54 runs), I read some web pages such as https://www.itl.nist.gov/div898/handbook/pri/section5/pri521...
I want to get cross-validated performance values of my model after hyperparameter tuning and sequential feature selection on each feature subset. Following this example, I want to use an outer-CV where in each fold I fit the GridSearch with SFS and then re-train the best model on each identified subset. Something like ...
Is there a way to restrict the predicted values, say, to only positive values or an interval of values? Let's say I want to estimate a linear model, y = a + Xb, using Bayesian techniques. I specify priors for a and b, a ~ Normal(0, 1), b ~ Normal(0,1). When estimating posteriors, I might get that b= -0.3 with some prob...
I am using Python's statsmodels.tsa.vector_ar.vecm.VECM to estimate VECM models and generate pseudo out-of-sample forecasts with the .predict() function to compare with actual data. For example, I would stop training data at 2012Q4 and compute a one-quarter-ahead forecast for 2013Q1. Then I would increase training data...
Let $\{X_t\}_t$ be a sequence of discrete random variables and assume that \begin{equation} \\Pr\big(X_t=x \, | \, X_{1},\dots, X_{t-1}\big) \geq \nu_x \quad \text{ for all } t=1,2,\dots \end{equation} where $\nu_x\in [0,1]$. Consider a sequence of binary random variables $\{Y_t\}_t$ such that If $Y_t=1$, then $X_t=x$,...
Question. Let $X_1, X_2, ..., X_n$ be a set of normal random variables, each with variance ${\sigma }^2$ and mean 0. For each $i,j$ in pair in $X$, $Cov(X_i,X_j)=V$. Further, let $Y_1, Y_2, ..., Y_m$ be a second set of random variables, where each $Y_k=\displaystyle \sum_{i=1}^n w_{i,k}X_i$. Each $w_{i,k}$ is an indepe...
I'm not too familiar with optimization algorithms e.g. genetic algorithms and I'm wondering whether it makes sense to employ a validation set in this context similarly to when we train a supervised machine learning model. Let's say we are in a chemical domain and we have experimental measures $f_1, \dots f_N$ of some q...
I have the following situation: there is data for six years, per month. In a year you can see variation per month, since the data is influenced by the seasons. Also, there is an upward trend over the years. Would it be appropriate to aggregate data to years, and perform linear regression? My concern is that the $n$ wou...
I have two experimental conditions called rest and task. The conditions include 13 subjects, respectively. I computed the mean and standard deviation (SD) for each subject’s data. Consequently, I have two lists of data: 13 mean values (for rest and task, respectively) 13 SD values (for rest and task, respectively) Th...
I am visualizing the difference between the empirical probability and the theoretical upper bound of the deviation of the sample mean from the true mean of successive Bernoulli trials. I'm using Hoeffding's inequality for this comparison. However, I've noticed an unexpected seasonal pattern in my empirical bound. I'm t...
I am currently performing analyses for a meta-analysis looking at the mean difference of pre-post intervention data (i.e., 'mean change'). However, one study reports identical mean and SD for the pre- and post-intervention measures. This means that the mean difference is 0 — not an issue — but the standard deviation of...
I’m looking for some help in diagnosing a gamma GLM. I am not sure whether the apparently poor fit is to do with the fact that my glm models dispersion rather than the mean, whether I am misunderstanding the diagnostic plots, whether I should try a different link function, or what else I might do to remedy it. Thanks h...
The set of values X($\omega_{k}$) of a random variable on $\Omega$ form the points of a new sample space $\Omega_{X}$. Show that $\omega$ is a random variable on $\Omega_{X}$ (i.e. no information has been lost by the transformation) if and only if the K values X($\omega_{k}$) are distinct. Initial attempt: I am pretty ...
I am tasked with running a sample size calculation and also statistical analysis of a study looking at the agreement between two 'tools'. This is a binary outcome so looking mainly at the different forms of kappa. However, here is the complexity to the data: There are multiple cases that we intend to recruit. i.e. peo...
I need help with something. I need to see if two "sides" of data have/come from the same functional format. Consider a large sample with values from, let's say, 1 to 10. What I want to know is if the sample from 1-5 has the same functional format as the sample from 5-10. Maybe something like the Kolmogorov-Smirnov test...
We have to match time series plot in the 1st row with the ACF plots in the second row. The solution for the same is given below. However , It would helpful if someone could explain the solution.
I am trying to estimate the effect of difference in ranks between two people (i and j) on an outcome Y using a linear regression. My independent variable of interest is the $\beta$ coefficient on $(Rank_i - Rank_j)$. Should I include fixed effects for $Rank_i$ and $Rank_j$, or just one of them? Assignment of $Rank_i$ t...
I was looking at a poisson process and using an exponential distribution to model arrival times of the event. For example the chances that a person is arriving at a bus stop. Then in the simple case I'd like to model the arrival of the bus and I'd use another exponential for that. What I'm trying to think of is what if...
Building on this recent post Generate sample from poisson distribution with fixed sum answered by @Henry and @Xi'an, how could we similarly go about generating n random samples from a negative binomial distribution with a fixed sum (y) and a known size parameter in R? I imagine that there might be a way to adapt the an...
Suppose we have an OLS problem with a large number of predictors: $Y = X_1 + X_2 + \cdots + X_p$. I want to obtain its RSS. I don't need to know the regression coefficients or individual residuals, just RSS. A naive way to go about it is first to regress $Y$ on $X_1$, take the residuals, regress them on $X_2$, take the...
I have a rudimentary understanding of fuzzy inference rules of the form IF(x is A) THEN(y is "LOW"). I have not been able to find examples of fuzzy rules that cause a change in the output variable; e.g. IF(z is C) Then(y is "INCREASED_MODERATELY"). In these expressions, all of the variables/concepts are linguistic vars...
I am very new to statistical analysis, so I apologize in advance if this question is too naïve. I would like to know whether participants be columns in data frames for PCA, but I first want to offer some context. I have data from 100+ participants rating 40+ stimuli using a 7-point scale. We had reasons to believe that...
I am using the MatchIt package in R for Coarsened Exact Matching. I only understand the basic idea of Coarsened Exact Matching. I have difficulties understanding what the estimand should be. In the manual, it says for method_cem: estimand: a string containing the desired estimand. Allowable options include "ATT", "AT...
Lets say I have the following dataset, it has two categorical variables domain & country, and a count column. So each row shows me how many times someone from a specific country visited a specific domain. Now the size of each country and domain can vary greatly! So what I would to do is to calculate some scores to help...
In this post, the author shows that when a likelihood and prior are both T-distributed with $2$ degrees of freedom, the posterior is bimodal. The given reason is that The two modes persist - the extra mass in the tails means each distribution finds the other's mode more plausible and so the average isn't the best "com...
Is it true that if $X$ follows a central chi-square distribution, then $X+a$ follows a non-central chi-square distribution where $a$ is a positive constant?
So I have this dataset that looks like this. Income is the amount of income customers at a grocery stores reportedly make. Campaign is whether the customer accepted the campaign, 1 if they did, 0 otherwise. "Accepted or not" is just another way of expressing Campaign for the last variable. CumSumAcceptance is the runni...
I have three categorical variables $A$, $B$, and $C$ representing three different levels of spatial regions. Every element of the image of $C$ is a proper subregion of $B$, and likewise for $B$ in relation to $A$. Think like cities nested within provinces and provinces nested within countries as an example; sort of a "...
I am new to statistics. I have a list of coyote sightings and am trying to figure out if the moon illumination percentage on that particular night is correlated to the sighting. Meaning, if the moon has a higher percentage of illumination, does that relate to an increased chance of a sighting happening or vice versa. I...
Assume that you having a heatmap that looks like this. The goal is to classify all the "dot" inside the image. How can that be done? The assumptions of the image: The image has always black background The white is values that are around 100 or more. In each cluster, there are only one maximum value I want to know H...
I'm working with an unusual dataset, where some of the covariates/characteristics are measured after the start of the study (though without a timestamp!). Basically, it's a dataset about an auction. We're tracking how long it takes for a product to change hands (like when it gets sold). When a product is put up for sal...
I have run multiple tests to determine normality on my dataset, but I am unsure which one to adhere to, especially since my histograms, density plots, and QQ plots leave much to be desired in terms of looking normal. To sum up my data, I have $37$ total observations in $2$ groups (Group 1: $n=16$, Group 2: $n=21$). If ...
I want to sample a continuous distribution $f$ using the Metropolis-Hastings algorithm. Can I define my transition kernel as being sometimes discrete and sometimes continuous as long as I use the correct acceptance probability? I'm trying to make sense of continuous-state Markov chain theory so I apologize if I'm being...
I am working on Deep Learning so I will try to ask this question from that perspective. It seems that most recent works in CausalML uses the framework of SCMs, and that assumes each observed variable has one corresponding exogenous noise variable. Now my question is: Why do we always need exogenous noise? For example, ...
A simple way I can think of to detect OOD samples is to treat them like another class in a multiclass classification problem. For example, with MNIST, we would modify the network to predict another class in addition to the 10 digits. So logit 11 represents OOD. Then we train the network with supervised learning where t...
Let $(\Omega,\mathcal{F},P)$ be a probability space and let $Y,S: \Omega \to \mathbb{R}$ be random variables with a density $p:\mathbb{R}^2 \to \mathbb{R}$ wrt. the Lebesgue measure with the property that $p(y,s) > 0$ for all $(y,s) \in \mathbb{R}^2$. Now let $f :\mathbb{R} \to \mathbb{R}$ be a measurable function and ...
I am supposed to check the significance of the connection between an arbitary Y variable (nominal\ordinal\binary I cannot know in advance) and an arbitary numeric X variable. This is a classification problem. However may I just flip the Y and X variables to make the problem simpler and use ANOVA? Instead of Y~X, just X...
I am trying to fit a GAM to model a presence/absence of marine mammals in function of temporal and environmental variables using MGCV (hence using binomial distribution). My 'precipitation' explanatory variable is zero inflated resulting in an weak increase of the presence probability with rainfall. This is unlikely co...
I'm looking to work out the difference in effect (time to surgery) between two patient populations (exposed and unexposed groups) and compare between two countries (i.e. difference in differences). i appreciate it may be confusing to understand, so here is a basic equation. time difference between groups between countr...
I am trying to understand the residuals returned from a fitted ARIMA(0,0,3) model. I simulated a time series and recovered the parameters: set.seed(seed = 1) x <- arima.sim(model = list(order = c(0,0,3), ma = c(0.8, 0.6, 0.4)), n = 1000) x.ma <- arima(x = x, order = c(0, 0, 3), method = 'CSS') x.ma Call: arima(x = x, ...
I have a question regarding the mtry values for the two models Bagging and Random Forests. I applied the mtry measure for the California Housing Dataset and then for another dataset about white wine. As you can see for the White Wine the pattern of MSE reduction is quite different than in the California Housing Dataset...
Assume I have a fancy procedure $w: X \to \mathbb{R}$ to come up with weights for examples $x \in X$. Think of it as similar to the weights used in e.g. some boosting procedures. Now, I want to build a classification Random Forest ensemble using bootstrapping, i.e. each tree is constructed on a randomly sampled subset ...
I have a complex sequence $z(t)$ in time which I know to be a Gaussian process. I read that the complex Gaussian process is not only characterized by the covariance, but also the pseudo-covariance matrix. However, I do not have expression for either of this. What I know is that the power spectral density (PSD) of $z(t)...
I have a data set with an effort rating (varying in an ordinal scale from 1 to 7) as the response variable and a time point of measure (seven consecutive measures) as a fixed factor. An individual is a random intercept in my model. My data set has 48 participants. I have modeled the data using the ordinal-package´s clm...
I am creating a sports prediction model with around 300 features. There is a high degree of multicollinearity which breaks an assumption for logistic regression. The issue is that several of these features contain the most information toward prediction. One such predictor is the current number of wins a team has, which...
Is there a way of specifying a quadratic regression between latent variables in lavaan? (Or in another R package for structural equation modeling?) That is, latent variable y, yLatent, is a quadratic function of latent variable x, xLatent, such that yLatent ~ 1 + xLatent + xLatent^2. Apparently there is no direct way t...
I understand the bias-variance tradeoff. But, I have never come across a scenario where that has changed anything in the modelling process. Is there any practical scenario that you have encountered where you dug into the bias and the variance tradeoff and the way you proceeded with the modeling changed because of that?...
I have conducted research which assessed the technical skills of surgeons. A surgeon will perform a simulated operation, and be assessed by two different assessors whilst completing the procedure. The assessment tool has several domains, which are averaged to give a final score, giving the surgeon two final ratings on...
I encountered a problem in developing an aggregation model of several indicators. Almost all the indicators are at a small geographical scale (admin2 / Provinces), but one is at larger geographical scale (admin1 / Region - that contains several admin2 provinces). The final aggregation should maintain the "admin2 / prov...
When I google search for the term, only 6 pages showed up. There is no authoritative paper on this, except https://arxiv.org/abs/1306.6430 which argues for using informatics concepts to generalize a prior. It seems an attempt to reconcile Bayesian inference with machine learning concepts. Is bayesian updating framework...
I'm looking at the sensitivity of a hall-effect sensor and trying to characterize its abilities visually. Most sensor ranges or power ratios are dependent on the direction of the sensor and also a degree θ so you get lobes of various power settings or sensetivity depending on the broadcast/reception nature of the equip...
This question is inspired by this programming question. Suppose I have 3 RVs which are independent. $$X \sim N(25.5, 2.5)$$ $$Y \sim N(25.2, 3.5)$$ $$Z \sim N(24.9, 1.7)$$ I want to know what is the probability that X is the minimum of the three. My first inclination was that is $P(X<Y) * P(X<Z)$ or $P(X-Y<0) * P(X-Z<0...
Let $q_\lambda(z)\in\mathcal Q$ be the variational posterior approximation of $p(z|y)$. Note that the optimal $\lambda^*$ is approximated by the following recursive sequence $$ \lambda^{(k+1)}=\lambda^{(k)}+\eta_k\nabla_\lambda\mathcal L(\lambda^{(k)}), $$ where $\mathcal L(\lambda)$ is the ELBO. I am interested in est...
Is it necessary in structural equation modeling (SEM) to incorporate all potential independent variables that could affect the dependent variable? Or is it acceptable to examine the influence of only a select few independent variables on the dependent variable?
I would like to test for linear a increase in performance in my training study using MATLAB. In this study each participant went through 6 training sessions, each session containing 4 time points of a learning a task with 2 conditions. So in total there are 24 (6 by 4) repetitions for each condition and participant. Wh...
I was wondering if anyone would be able to help me understand whether the proportional hazard assumption is met or not. For context I have a large dataset with >10 million observations (up to 40 observations for >27k distinct firms ). I have quarterly info on whether the firm failed or not in counting process style (ea...
I am modelling changes in diversity (using a modified Shannon-Weiner index over time for several sites) with a GAM. When I look at the acf and pacf plots, I don't see much autocorrelation in the acf plot, but there does seem to be a stronger indication for autocorrelation in pacf plot (plots below are from using the fu...
I am new to lme4 and curious if I am specifying my model correctly. I have EMA data that was collected within 3 bursts (baseline, mid-intervention and post-intervention). Within each burst, participants completed 3 EMA surveys a day for 7 days. Participants were also randomized to an intervention vs. a control group. I...
I have used the maximally selected log rank test to dichotomize a continuous variable (high vs low). I was curious if the maximally selected log rank test could be generalized to make 3 groups instead of two (high vs med vs low)? I am using r and have been using the maxstat package but didn't see any scenario where 3 g...
I’m conducting a meta-analysis on the association between LGBTQ+ discrimination and mental health. Both are continuous variables, and I am analyzing correlation coefficients. I’m interested in looking at moderators (continuous) of the relationship between these two variables. One such moderator is social support (conti...
I've been working on a project where I'm comparing different methods using a mixed-effects model, and I'd appreciate some feedback on my approach. Background: I have a dataset with several variables: method: Different methods that are being compared. ref_name: The reference being used in the benchmarking. val_dataset:...
I'm computing mutual information for several features where one of my datasets has one instance. One instance is because of a specific filtering criterion I used. I'm using sklearn.feature_selection.mutual_info_classif¶ to calculate MI. I am getting an ValueError due to this one instance. Anyway, I wanted to quantify t...
The modern popular frameworks that I am aware of for causal inference (i.e. potential outcomes or Pearlian) are based on a premise of uncertainty quantified as probability. There's nothing particularly wrong with that, but I like to explore tools and use cases. Interval arithmetic (IA) is a way of quantifying/qualifyin...
Let's say we have some binary variable of interest and fit a model to predict the probability of the two classes, say a logistic regression or a "classification" neural network. This model gives us predictions in the interval $[0, 1]$. Must these predictions satisfy the Kolmogorov probability axioms, even if these pred...
I am analyzing a longitudinal study where patients received either treatment 1, treatment 2 or no treatment (placebo) using linear mixed models (LMM) in R. I have a baseline measure that is related to changes in the outcome (significant 2-way interaction of predictor and time) and now would like to know if that baselin...
Rasch models are typically fit through an item response theory framework, but can also be estimated through a mixed effects model (e.g., see here). This is highly useful in my case because of some of the reasons the authors mention in the article. However, when fit through an IRT framework, you can typically estimate t...
I have a question in terms of evaluating the effect of a dummy $D$ to endogenous variable $X$ in two-stage least squares (2SLS) regression. Suppose I have dependent variable $Y$, endogenous variable $X$, exogenous variable $W$ and $D$ ($D$ is categorical which should be converted to a dummy), $Z$ is an instrument. I am...
I have read that composite outcomes are common in cardiovascular trials because they give a holistic view of a treatment effect. Assuming outcomes are frequent enough for statistical power to not be an issue, why would this be the case? Wouldn't it always be beneficial to measure the effect of treatment on outcomes ind...
I am looking to compute the variance covariance matrix for the standard linear regression coefficients $\hat{\beta}$ when: $$Y = X \beta + \epsilon $$ and $\epsilon \sim N(0,\sigma^2)$. I have derived this in two different ways but I am getting contradicting results and would like help figuring out where my derivation ...
Given prior $ \mu \sim \mathcal{N}(\mu_0, \tau^2) $, likelihood $ X_i | \mu \sim \mathcal{N}(\mu, \sigma^2) $, we know the closed-form solution of posterior is $ \mu | X_1, X_2, \ldots, X_n \sim \mathcal{N}(\mu_n, \tau_n^2) $ with $ \frac{1}{\tau_n^2} = \frac{1}{\tau^2} + \frac{n}{\sigma^2} $ and $ \mu_n = \frac{\frac{...
It is common to draw a neural network as a "web" of neurons and connections, such as the "web" below of a multilayer perception that has input neurons in white, hidden neurons in black, and the output neuron in blue. It is also possible to do this for a convolutional neural network, such as the drawing below that show...
1.I want to interpet the coefficients of RDD model above. The dependent variable is log-transformed. Should it be the same as linear regression even though I am using local polynomial regression with a selected optimal bandwith? Should I interpet treatment effect as exp(-0.191)-1=-0.112 = -11.2% ? Then, the treatment...
I have data that is looking at comparing a cheap (T) to expensive (V) ultrasound device with the hopes that the cheap is the same as expensive. There was 4 different examiners that used 4 different views to determine the presence of osteophytes. I have used a generalised mixed-effects logistic regression followed by an...
I am doing a power analysis (PA) to find the minimum sample size to detect a difference between two groups (with acknowledgment of the theoretical problems involving using p-values, etc.). The mean and SD of my predictor variable is a value between 0 and 1 (up to two decimal points after 0). The predictor variable is a...
$\operatorname{Var}(\bar X)=\sigma^2/n$ is the formula of variance. I want to check my understanding of this concept. Suppose I want to compute the mean household income of a given city. I collect all possible sample of size $n=30$ (say I pick $30$ households in each suburb) and then compute the mean of each sample. ($...
I have provided a hypothetical example to illustrate my question. Assume an alternate hypothesis for a difference between two variables of interest (arbitrary for the example), analyzed with a chi-squared contingency test (two-tailed). Variable 1: 3 levels (categorical) Variable 2: 2 levels (dichotomous) I’ve kept this...
Here is the probability density function (unnormalized) of a covariance matrix: (from a Bayesian perspective): $$ f(\boldsymbol{V})\propto \det(\boldsymbol{V})^{-\frac{N+J+1}{2}}\int_{\mathbb{R}^{K}}\exp \left [-\frac{1}{2}\sum_{i=1}^{N}(\boldsymbol{y}_{i}-\boldsymbol{X}_{i}\boldsymbol{\beta})^{\top}\boldsymbol{V}^{-1}...
Suppose that I have created train/validation/test splits for model building. I optimized the hyperparameters using the validation set and chose the parameter values which gave the highest accuracy. To estimate the accuracy in the production, I test the model on the test set. Now, suppose that at a later time, I decided...
I am struggling to find the main references for the Bayesian Event Tree method. At least in my research field, people cite authors that have applied this method to their specific problem, without citing those who first introduced it. Statisticians, I suspect ;) Can you help me with citing it properly?
I am looking at whether certain animals or categories of animals are more likely to use human-made trails than natural trails. We used camera traps and recorded for every case which animal it was, whether it was on an open or closed trail, and to which category this animal belonged. Here's an example of what the datase...
I used the function survregbayes from the package spBayesSurv in R to perform a spatial accelerated failure time model with CAR frailties. The event I analyze is the digitalization of cities. The problem is that I don't understand how to interpret the coefficients of the model. In particular, I get: Accelerated failure...
I am studying a time process, consisting in events occuring at some dates, one after the other (typically one event every 1-2 days, sometimes several in a day, with data covering circa 20 years). I would like to test if there are some events that are missing in the series I handle. Do you see some method I could apply ...
I am performing a logistic elastic net regression to assess which variables influence the outcome and evaluate it. I am working with an imbalanced dataset that consists of 50 cases and 1700 controls. My objective is to assess the best approach for model development and evaluation. At first I performed a traditional tra...
I am quite new to the field of survival analysis and am getting lost and confused with all the different types of bias that can occur, particularly in observational studies. For example, it appears the use of time-varying predictors can both reduce, but also incur bias! I realize that it will take intensive study to ma...
I have some epidemiological data, relating to the prevalence of obesity at UK local authority level. For the purpose of exploration I want to derive the median obesity prevalence. However, I need to account/adjust for measures of deprivation and ethnicity. What methods are there for deriving an adjusted median value?
I was reading about mixed models and I am confused about AIC and BIC criteria. My first question is can I use this types to calculate them? AIC=2d-2ln(l) BIC=dln(n)-2ln(l) where d: is the numbers of parameters. And my second question, the problem we are facing in mixed model is calculating the number of parameters?
After implementing the GHK algorithm, I noticed an unexpected behaviour that lead me to question the validity of the algorithm, but since this is widely used I am sure I must be missing something. Specifically, even choosing a bivariate normal with zero-mean and symmetric bound (e.g. (-Inf,0) and (0, Inf) respectively,...
I need to run a survival analysis on my data. Based on the AIC, the lognormal distribution is the most suited one. Can I report the estimates and 95% CI as they are, or do they need back-transformation because of the lognormal distribution? If so, how do I back-transform them? Code: fit.hbe.rev1 <- survreg(Surv(Latency...
If I wanted to analyze data taken of patients meeting pre-specified criteria from several hospitals through a linear regression (say how hypertension changes given age and sex), I think that a mixed/multilevel model would be appropiate, since data are non-independent and patients can be clustered by hospitals. But, if ...