instruction
stringlengths
9
38.7k
Recently I have been working with gut microbiome data, like abundance and its metabolic content (but for purposes of the question this may be indifferent). I'm inexpert in the field of multinomial logistic regression and also in how to report it in a scientific paper. I'm working in R (the one_hot() to convert my categ...
I'm following this guide on detecting anomalies using autoencoders. The section titled "Normalising & Standardising" seems to be describing normalization in terms of scaling and shifting the features to be centered around 0 with a standard deviation of 1. But the implementation in the pipeline is using sklearn.preproce...
I have a model that has the following results: Is it possible for me to interpret a white man who received Degree1 and went into Profession1 as having a wage as $15,230.05 ($12,917.22 + $357.53 + $2,319.28 -$363.98)? Or would I have to have the gender variable apart of the interaction, i.e. WomenDegree1Profession1? If...
Question: Given an irreducible Markov Chain. Prove you can reach any pair of states in $N$ steps with greater than 0 probability So essentially given any pair of states a start state and end state in the Markov Chain that's irreducible it's possible to reach the end state from the start state in $N$ steps with probabil...
I am trying to calculate the standard deviation of a sampling distribution when using Bernoulli sampling (where each item is given a separate, equal, non-zero probability of being included in the sample). Based on my stats textbook, to use the 1/sqrt(n) rule the sample needs to be independent and the Bernoulli sampling...
I have proportions of cells from two samples (A and B) that overexpress certain genes. dataset A dataset B gene1 x1 y1 gene2 x2 y2 gene3 x3 y3 ... ... ... geneN xn yn According to my hypothesis, dataset A should have more cells that overexpress...
So today I've seen a lecture regarding multiple linear regression with response $y$, an intercept and two explanatory variables $x_1$ and $x_2$. That is, $$y_i=\beta_0+\beta_1x_{i1}+\beta_2x_{i2}+\epsilon_i$$ We let $\hat{\beta}_0$, $\hat{\beta}_1$ and $\hat{\beta}_2$ be the least square estimators for $\beta_0$,$\beta...
I have predicted the probability that player A beats player B in a head to head matchup in a game, for all combinations of players. I would like to convert this into the probability of a player winning the entire match, based on head to head predictions, and rank them. Is this as simple as P(A beats B) * P(A beats C) *...
Suppose we have a sample $X_1, X_2, \ldots, X_n \stackrel{\text{iid}}{\sim} Binomial(\theta)$, where $n$ is known to be large. I would like to calculate the 95% confidence interval for $\theta$, and I am given that the sample mean is some constant $k$. Notably, I am not given the sample variance. How do I calculate the...
I'm running a regression model to test whether unionisation rates have an impact on wages. I've introduced an instrumental variable: public support for unions. As far as I can tell, this instrument only affects wages through its impact on unionisation rates, but it seems likely that lower or higher wages affect support...
From food microbiological data, I have the following variables (showing only the head): $$ \begin{array}{|c|c|c|} \hline \text{TYPE} & \text{YEAR} & \text{Escherichiacoli} \\ \hline \text{Spreadable} & 2018 & \text{Not detected} \\ \text{Sliced} & 2018 & \text{Not detected} \\ \text{Spreadable} & 2018 & \text{Not...
I'm looking for an algorithm that would do the following: Imagine that you need to sample uniformly at random and without replacement $k$ elements from a pool of $n$ elements. The catch is that $n$ is unknown. You can iterate over the whole set of the elements, so eventually, you would learn $n$. The algorithm is ought...
Background: I want to test the difference in means between two groups along multiple variables. The approach I know is to run a regression where the group variable defining the populations is the outcome and the variables to be tested are the explanatory variables. $$ G = \alpha_1 + \beta 'X +\epsilon $$ and then per...
Background I have a dataset representing a large group of people that I'm using to specify a Cox proportional hazards model of a binary outcome on some explanatory variables. My outcome variable is a health condition of interest (coded 1/0), and, my "focal" explanatory variable -- the one I'm most interested in -- is a...
I would appreciate your help on the following I have a quadratic equation and need to write it in a state space format according to a model below. My equation is the following below, where T is the degree of a custom index persistency and Z a vector of control variables. The target state space model is comes from eq ...
I have a simple question: it is valid to use a LASSO model for variable selection in a small dataset? I won't do any machine learning. The goal is to use LASSO for variable selection instead of stepwise regression. Any help is greatly appreciated Edit: The dataset consists of three categories of behavioral variables an...
According to the Yule-Walker equations, the long-term variance of an AR(p) process is $$\frac{\sigma^2}{1-\phi_1\rho_1 \ldots - \phi_p\rho_p}$$ Where the AR(p) is defined as $$Y_{t}=\delta + \phi_1 y_{t-1} \ldots + \phi_p y_{t-p} + \epsilon_t $$ with $\sigma^2$ denoting the variance of the white-noise process $\epsilon...
Can somebody explain why we can not train the dataset on the test dataset?
Relevant Files: https://www.dropbox.com/sh/0jnj3txf4stb2q8/AAD58COnAUysul58qG2p5emwa?dl=0 import excel "merge_db_environment_korea_kospi200_findel.xlsx", firstrow keep if ksic1 != "K" gen CO2Sale = co2_sale_gr_1000 keep if year<=2019 keep if year>=2011 global control_lag = "lag_size lag_cf_vol lag_capex lag_leverag...
Suppose I have a joint distribution function say $p(x,y,z)=f_{X, Y, Z}(x,y,z)$. Is it possible to find a system of stochastic differential equations or a single stochastic differential equation from this? I know that a Gaussian distribution can be taken as a solution of a heat equation. I have been thinking about a Kol...
I ran a Weibull analysis on data of devices which consists mainly of failures over time (80 % died, 20 % are still alive). In total there are around ~4500 devices. After conducting this analysis I received this plot by means of WeibullR: After some digging on the internet I read here and there that this shape of the c...
I've been looking for a method to calculate $R^2$ on a subset of the samples (a subset of the instances, not a subset of features), and found this answer from Dave. It suggests using the mean of the original samples ($\bar{y}$), rather than the mean of the subset, when calculating the TSS - .i.e.: $R^2=\dfrac{\sum_j (y...
I have a task: A frequency claim distribution, $K$ is a compound Poisson-Gamma distribution. The mean of the Poisson distribution is gamma distributed with mean equal to 1 and variation equal 2. Find the probability $P(K=1)$? My attempt is. Let's denote $K|\Lambda \sim Pois(\Lambda)$, $\Lambda \sim \Gamma(a, b)$ and $E...
I'm familiar with concepts like early stopping, and detection of plateau and so on. Tensorflow CNN training has a possibility of saving only best model too, according to model's accuracy metric (for example). However I do not completely trust saving the best model, and let me explain why. Assuming this picture example ...
I am currently assessing if allocation to a rejection scenario and degree of negative beliefs predicts the odds of engaging in a series of behavioural outcomes (e.g. avoiding the person). My first IV (Rejection Condition) is a repeated measures 3 level categorical variable (control, ambiguous rejection, and rejection c...
I have two sets of weighted and directed graphs with the same nodes. I expect that between these two families there is a variation in connectivity driven by some phenomenon. How could I highlight this and possibly evaluate which links are most relevant in this change?
I'm running some regression models in R using brms and lme4. When I run a Bayesian model: priors.mod.1 <- c(set_prior("normal(0, 1)", class = "Intercept"), set_prior("normal(0, 1)", class = "b"), set_prior("cauchy(0, 1)", class = "sd"), set_prior("cauchy(0, 1)", cla...
How to understand these plots with fits from an Aalen’s additive regression model for censored data? I simply wonder why the curves change between plus and minus. Do they have to understand such that the y-axis is giving the influence in general and the behaviour over time how these specific components contribute? Pre...
I have a data set with one real-valued feature and a real-valued target. Someone has used this data set to fit a model (a regression). I get a results of this fit, which is a single function mapping from the feature to the target. My question is if it is possible to estimated the level of over-fit (or under-fit) just b...
Can you please advise me about a good online statistical course with practical examples in R that can help me to be confident when I'm doing my analysis. I have basic to intermediate knowledge in statistics and I want to go to advanced level.
I have a data relating to a questionnaire that takes form of a knowledge test, in which each question has multiple correct responses and the respondents can check all responses they consider to be correct to a particular question. That is, the questions are "multiple response" type, to select 1+ response in each questi...
I've been drawn into a discussion at work on interpretation of principal component analyses. My "adversary" claims that the PCA score plot shows "statistically significant" differences (separation) and/or similarities (clustering). From my understanding, statistical sigificance is something that can be inferred from st...
Consider a binary classification problem, there are $1000$ samples in the data set, of which $500$ positive and negative samples each. Positive samples have the label $1$ and negative samples have the label $-1$. However, the quality of this data set is very low. Many of the samples in the positive samples are incorrec...
I recently conducted Growth Mixture Modelling in a Structural Equation Modelling framework using a sample of n~300,000. I found that for any number of trajectories I fitted, the Vuong-Lo-Mendell-Rubin likelihood ratio test (VLMR) and Lo-Mendell-Rubin adjusted likelihood ratio test (ALMR) produced p-values <0.001. I use...
Let's say I ask 200 participants in a study what experience brought the most joy to their lives: A, B, C, or D. Participants choices: A: 100/200 B: 50 /200 C: 17 /200 D: 33 /200 Using chi2 or prop.tests in R, I found that option A brought most joy to people, with proportions significantly larger for A than for the oth...
I have a dataset that measures students' time spent working on a set of mathematics questions. My dataframe looks a little something like this: Participant ID Question 1 Question 2 Question 3 1107 54.2 48.9 45.0 4208 53.1 45.6 40.6 I have times for 20 questions for about 200 students. I have observed an o...
I have a normal linear model (lm(y ~ x + z)) and a linear mixed model (lmer(y ~ x + z + (1|id)). x is continuous, z is a treatment dummy. What does it mean if z is significant in the normal lm model, but not significant in the linear mixed model? My intuition is: Since the random intercept models the variance associate...
I have a trial-wise linear mixed model with a categorial between-subjects factor group (A vs B) and two categorical within-subjects factors itemEmotion (neutral vs. negative) and neuralArea (frontal vs. posterior) and their interactions and random intercepts for each subject (n=52, 26 per group) and item (60 items in t...
Let $X_{i,j}$ be $K \times N$ i.i.d. random variables such that $P(X_{i,j} = 1) = P(X_{i,j} = -1) = \frac{1}{2}$, and $S_p = \sum_{q=1}^{N} X_{p,q}$ be $K$ i.i.d. random variables, each of which is an $N$ step random walking. How to prove $E[\max_{p \in [K]} S_p] \ge \Omega(\sqrt{N\log K})$?
I have shown that the MC is aperiodic and irreducible, if that helps.
I have a function block that outputs a single-value when fed with a signal (a measurement taken from a sensor) containing a 1000 time points. A similar case would be a function block that computes the mean value of the signal. The difference being I don't know what the function is in my case. I also have a dataset of r...
I am working on a ML problem incorporating four data streams, each producing multiple features. We would like to know if each of the data streams provides a significant addition to the model performance. If a data stream contribution is low, and upkeep cost is high, we should cut it from our model. I have been thinking...
I have this data that is the result of a logistic regression. df<-structure(list(`Predictors of failure` = c("Variable A", "Variable B", "Variable C", "Variable D", "Variable E", "Variable F"), Estimate = c(1.73, 1.18, 1.59, -0.04, 0.16, -0.003), OR = c(3, 3.26, 4.88, 0.98, 1.01, 1), `p-value` = c(0.049, 0.043, 0.02...
This post provides a clear explanation of a difference-in-difference setting where two similar groups (one with a certain attribute and the other without) are differently affected by the COVID-19 crisis, by comparing them 'before' and 'after' the crisis. My questions: 1) What are the disadvantages of using this alterna...
I have a dataset of (people and their wealth) and (restaurants and their price). I want to resample this data (with replacement) such that there is a specific correlation between wealth and price. How would I go about doing that? Code below for clarity library(tidyverse) set.seed(1) n_people <- 100 n_resteraunts <- 10...
I would like to run a multiple linear regression to test if my protein of interest differs among different stages of a disease, while controlling for covariates/ confounders such as age and gender. The disease stage variable has four levels. I would like to compare the "control" stage with the three remaining stages. F...
Let $(X_t)_{t \in \mathbb R^+}$ be a Gaussian process $\mathcal N(\mu(t), \sigma^2(t))$ with covariance function $K$. Let $s \leq t$. Can we express $Cov(X_s^2,X_t^2)$ in terms of $K, \mu(t), \sigma^2(t), \mu(s), \sigma^2(s)$ ? To my understanding, $(X^2_t)$ is called a chi square process. I find very little informatio...
I'm wondering, if either GEE or mixed models can handle all the 4 cases of missing data: T0 T1 T2 T3 m + + + (missing at t0, late entry) m + + (missing inside a series, here at t1) m (missing at the end, here t3) m m + m (missing at any place) I know the geepack in R handles the "waves" argument. Does...
I have data of $N\approx 1200$ whereby treated and control individuals have been matched (via full-matching) as a pre-processing step. This matching step induces correlations between treated and control individuals. The next step in the analysis is to use mob() to identify any subgroups in my data based on some partiti...
I'm working through the following question: I understand that the formula is: Likelihood(Theta_0) / Likelihood(Theta_A) As its bernoulli, I think it shoudl work out as below but I am at a loss on how to make it neater and put it in terms of k. Can anyone offer any advice?
I firstly generate data from a bivariate normal distribution. Here comes the code. n <- 10000 set.seed(123) #for reproducible results dat <- MASS::mvrnorm(n=n, mu=c(0, 0), Sigma= matrix(c(2, 0.5, 0.5, 2), byrow=T, ncol=2) ) Now what I want to do is ignore that I know th...
I am working on a dataset with over $30000$ observations of bank-specific data (such as net income, total assets etc.) from 2010-2017. I've been trying to estimate the effects of negative interest rates on bank profitability and used a DiD/panel regression approach for doing so. Additionally, I added typical control va...
In a one-way ANOVA, we test if the mean is different amongst multiple groups. The results of this might not be super useful when testing a large number of groups, because we only get a confidence related to "someone being out of place" rather than a confidence for "which is biggest", etc. OTOH, it seems that I can so...
I have a situation where I have a vector $\textbf{x} \sim N(\mu_x, \sigma^2_x)$ and a vector $\textbf{y} \sim N(\mu_y, \sigma^2_y)$. I want to generate a new $\textbf{y}_2$ that transforms $\textbf{y}$ to have a specific correlation with $\textbf{x}$. So I use Cholesky transformation to do so. But my question is, what ...
I'm working through a question in Gelman - Regression and Other Stories and I find myself getting confused with the following question; 'Power, type M error, and type S error: Consider the experiment shown in Figure 16.1 where the true effect could not realistically be more than 2 percentage points and it is estimated ...
I would like to conduct a meta analysis on a subgroup that's often included in larger studies but not typically studied alone. I am trying to investigate the effect the presence or absence of a covariate has on event rate. One of the studies that meets our inclusion criteria has 4 categories of this covariate, no prese...
I have a binary classification problem, where half my development data is labeled by a reliable source, and the other half by a less reliable one. Note that each instance gets a label from only one of the sources, not both. What are some standard approaches to handling this type of situation? One way I could think of i...
Let me first explain what I'm trying to do: An autoencoder is first trained on regular data (no anomalies), then the decoder is discarded. Outputs from the encoder using overall data (data with and without anomalies) is clustered (using HDBSCAN) and the clusters are manually examined. The hypothesis is that anomalies w...
I've searched for solutions for a while but could not find any, perhaps once I learn the proper terminology available information online will pop out. I would like to know how much certain variables influence the correlation of another variable to an outcome variable. Problem: Imagine 100 forests with varying initial v...
I'm trying to learn about methods for conducting survival analysis when the data consists of, for example, yearly tests. In other words, when it is discovered that an event has occurred, it's only known that it occurred sometime in the last year. Right censoring would also typically be present. I'm finding it a little ...
I've come across two ways that people calculate R-squared on a test set: Calculate the square of the correlation between predictions and actual values (in practice, I've seen people do this in R by regressing the test set Y on their test set predictions, and report the R-squared from R's lm summary) Use the sum of squ...
I have a time series that exhibits a clear seasonal pattern regarding its variance. Basically at night and morning the variance is low and at midday it is high. The time granularity of the data is 5 minutes. so the length of a season is 288 time periods. As a preprocessing step I want to normalize the data such that th...
Suppose I have a random variable $u$ that is standard uniformly distributed. And I have an indicator variable $S_{i}=1\left(V_{i}>0.5\right)$. Now I am interested in the following conditional expectation. $\mathbb{E}\left[u\mid S_{i}=1\right]$. Now $u$ is continuous whereas $S_i$ is discrete. I do know that when X and ...
So what i understand is that scaling by unit variance is dividing the values by the standard deviation. While standardization is subtracting the mean and then dividing by the standard deviation. In what cases would it be more appropriate to scale by the unit variance versus the standardization? Thanks!
I am in the process of developing a scale. I have already performed EFA on the first dataset I collected, which showed strong support for a 4 factor structure. I am now planning to collect another dataset to do a CFA, but I have some conceptual problems: This scale supposedly measures construct X, with the 4 factors as...
Assume that $X \sim \mathcal{E}(\lambda)$ is, for example, exponential with $\lambda > 0$. Given a data sample $X_1, \ldots, X_n$, assume that I want to estimate the median of $X$. Consider these two approaches: Using the sample median as the estimate. Estimating $\hat \lambda$ using maximum likelihood on the data sam...
When we use Neural Networks to solve various tasks, we define an objective that the Network parameters $\theta=(\theta_i)_{1\le i\le N}\in\Theta^N$ have to minimize. So, for neural networks $f(\cdot|\theta) $ parameterized by an array $(\theta_i)_i $, the objective can be written as follows $$(\hat \theta):=\arg\min_{\...
wikipedia says that Also, the scaled inverse chi-squared distribution is presented as the distribution for the inverse of the mean of ν squared deviates, rather than the inverse of their sum. The two distributions thus have the relation that if $$ X \sim \text{Scale-inv-}\chi^2(\nu, \tau^2) \qquad \text{then} \qquad \...
This is related to a comment made in F. Harrell's Regression Modelling Strategies page 32 of Sec 2.6 on Multiple Degree of Freedom Tests of Association. Consider $E(Y|X)=\beta_0+\beta_1 X+\beta_2 X'+\beta_3 X''+\beta_4 X'''$, the 5 knot restricted cubic spline where $X$ is the covariate. Test $T$ of $H_0:\beta_1=\dots=...
I'm conducting one-sample t-test using R. I calculated p value, effect size, and confidence interval, but they seem to be conflicting. Here is a sample code and output: data <- rnorm(98, mean = 0.1772012, sd = 0.01932061) t.test(data, mu = 0.1718343) Here is the first output: One Sample t-test data: data t = 2.6...
Let us suppose we have two distribution functions $F$ and $G$ with shared domain and also shared moments but not necessarily shared moment-generating functions. I have seen from "Whether distributions with the same moments are identical" that two distributions can have the same moments while being distinct. I also saw ...
I have seen this post talking about how to tune hyperparameters on GANs. I'm actually wondering, more generally, how does one go about tuning hyperparameters on GANs. Obviously you cannot (I mean you could but that wouldn't be very efficient) use a human to judge if after the training is done with some hyperparameters ...
I am new at ML, and still trying to understand some concepts, so I figured I could ask here and maybe finally understand. How does it work the whole splitting data from a data set? Before answering, here is what I "know" and "understand" so far: I have a data set, I'll call it "ds". ds has 10 features, f1,f2...f10, wou...
The memoryless Markov property says future predictions only depend on the current status. With longitudinal data, we have all the past data recorded. Why cannot we make use of all the info? Why should we use Markov chains? Thx
I am new to this and would like to confirm my hypothesis testing. I have right skewed data with no ties in the ranking. N1= 56765 and N2 = 56895, U = 1,583,736,025. Now I am trying to find whether to reject the Null hypothesis or not. I calculated the critical value of U using the formula mentioned in the image with z=...
Motivation One of the classic challenges with Cauchy random variables is that their moments are not finite, and I even recently learned that Cauchy principal values of even moments of Cauchy random variables are not finite either. Of course among these moments are centered second moments that would have been the varian...
I use DeLonge method to compare two ROC AUCS. The result of it is Z-score. Both ROC AUCs obtained from LDA (linear discriminant analysis) from sklearn package. The first one uses eigen solver inside LDA and the second one uses svd solver. The dotted line is my data. The red line is N(0, 1) Note: there is a minor jump ...
With self-reported health scores (as a dependent variable) - such as CES-D for depression which typically ranges from 0 to 60, I was wondering whether log-transforming these scores would allow me to interpret their coefficient as a % change. My point is that although these scores provide valuable information, it is oft...
I have been reading multiple tutorials on lift and gain charts here,here,here and here. While I understand how the curve is drawn based on our model, but I don't know how the dotted black lines for random model or dotted blue lines for best model is drawn. I used the Python kds library to draw this line (as I do not kn...
In online reinforcement learning (RL), we have a behaviour policy. Let this policy be an epsilon-greedy policy. Suppose that I run Q-learning for some episodes and evaluated it by plotting "sum of rewards received in an episode vs. episode". For "sum of rewards received in an episode" (I am aware that there are other t...
I have a large dataset of 30000 points, but most my Ys are the same while all Xs are different. Ys are from different samples, so I had means of Y for each sample and I used means alongside Xs to train an RF. Then I used the predicted values by this RF as a new Y to train another RF that uses only Xs as input. This sur...
I have 5 samples from which I gathered data at 5 separate time points (days). Each day I observe the distribution of some RV. When I plot the distribution for each day it sort of looks like this for one sample. There's supposed to be a distribution change after day 0, but I'm trying to see if there's a difference betw...
I am conducting a pilot study with a sample size of $n=30$. I am getting a Cronbach's alpha score of $0.933$ to $0.991$. I tried deleting a few items and re-running the analysis. But still, Cronbach's alpha has not changed much. My specific questions are: What could be the reason for this high value? Can I justify thi...
Are there any exponential family distributions other than wishart distribution, multivariate normal distribution, Dirichlet distribution, multinomial(or categorical) distribution, Conway-maxwel multinomial distribution?
What exactly is the difference between these two and when should they be used? Context : I have a large set of unlabelled data. I can get a number of weak labels / labeling functions for all of the data, which seems ideal for weak supervision. But I can also get golden labels for a small set of data, and maybe try lear...
I am working on a binary classification using random forest model, neural networks in which am using SHAP to explain the model predictions. I followed the tutorial and wrote the below code to get the waterfall plot shown below. My dataset shape is 977,6 and 77:23 is class proportion row_to_show = 20 data_for_prediction...
In this example data I want to test if the variable "w" is different between subtypes. There are repeated measures for ids for each subtype, but the same id can never be found in different subtypes. How should it be analysed correctly? Does id have to be nested in subtype as a random factor, somehow? But can subtype al...
I just started to learn time series (about time after avoiding it for very long). I read through some short summaries and jumped straight to see if one can model time series using supervised learning, turns out there's 2 ways. The way I want to ask is based on the famous Kaggle notebook on XGboost for Time Series. The ...
Good afternoon! I want to estimate VECM in R and I have 2 questions: For instance, I want to estimate a model (in vector form): $$ \bigtriangleup y_t = \pi_1 y_{t-1} + \pi_2 y_{t-2} + A_1 \bigtriangleup y_{t-1} + A_2 \bigtriangleup y_{t-2} + A_3 \bigtriangleup y_{t-3} + \varepsilon_t $$ How can I specify in R exact num...
I know AUC is for binary classification, but in a paper, the authors seemingly used AUC_DS, AUC_BW, and AUC_0 to compare vector values, like ground truth of one sample [3,2,1,0,1,2,3] prediction value of the sample [8.1, 7.9, 7.3, 6.9, 7.5, 7.8, 8.6] they compared ground truth values and prediction values for many samp...
I'm running a neural network to classify audio files into 4 classes. This uses 3300 1min files split roughly evenly across classes. I split this into 80:10:10 train:validation:test sets. This trains for 50 epochs, I save the model from the epoch with the best validation accuracy, then inference on the test data using t...
TL;DR: Given a finite series of positive and iid random variates/weights $w_i$ of known distribution, $(w_1, ... w_n)$, what is the distribution (or at least the exp.val. and variance) of the normalized random variates, defined by $$ \lambda_i := \frac{w_i}{\sum_{j=1}^n w_j} $$ One may assume any reasonable distributio...
I've been getting some conflicting advice from various ML podcasts/videos/articles lately for how to deal with imbalanced datasets. Let's say my independent variable for a classification problem has a 1000:1 ratio of negative:positive values. Some people say that I should upweight the minority class here so that the mo...
I was reading the wiki entry for multinomial logistic regression https://en.wikipedia.org/wiki/Multinomial_logistic_regression#As_a_latent-variable_model and it states that we can view the multinomial logistic as a latent variable model by introducing the latent variables $Y_{i,k}^*:=\beta_k \cdot X_i + \epsilon_k$ whe...
As a follow up on How to understand Aalen additive regression model? I've conducted this method on my own data (which is, unfortunately, confidential). Hence, I cannot reveal what these data represent but I believe it doesn't matter, anyway. You can see here the hazard rate(?) separated by country. I realized that t...
I'm currently working on a problem, where I want to test weather there is a trend in the course of a certain metric in an animal, where I wanted to use something like the Mann-Kendall test. The problem is that I have data for multiple animals, which presumably have different starting values. Therefore I think it is not...
I'm a data science student and I've come across a fairly unusual dataset (to me, which explains the vague title). It's of the following form: STAT_1 STAT_2 ... HOME AWAY NEXT_HOME NEXT_AWAY NEXT_RESULT 15 11 ... Team A Team B Team C Team D 1 11 18 ... Team C Team D Team E Team F 0 ... ... ... ... ... ... .....
I am interested in estimating this linear/nonlinear mixed model: y[i,t] = f( a[i] + b1[i] * x1[i,t] + b1[i] * r * x2[i,t] ) , where b1 >=0 for all i's and 0 <= r <= 1. f() is the link function, which can be the identity link. Therefore, this model has a random intercept, a[i], and a random slope, b1[i]. Which package ...
I have a panel data set over several years (2010-2017). In that figure I have countries that I grouped as control (not receiving the treatment) and others as treatment (receiving the treatment). The variable of interest is net margin. In the control group and the treatment group there is large heterogeneity between the...
Let's assume that we have a set of different measurements from an instrument of a parameter of a parameter P that changes with time during a time period t. Let's also assume that the measurements follow a non-normal unspecified distribution, their are not autocorrelated and we calculate their median for the period t....