instruction stringlengths 9 38.7k |
|---|
I would like to determine confidence intervals and prediction intervals for a noisy dataset that follows a power law distribution.
I have a dataset that (to my eye) follows power law behavior in the form of y = a x^b. The measurements are noisy in both x and y, so I think an orthogonal distance regression is appropriat... |
I've got a variable with psychological data (N=75) which is distributed pretty symmetrical, but has very few cases with very extreme values, more extreme to the left tail. But nevertheless this data is valid.
The analysis I will do, is a simple t-test. Due to the fact that the extreme cases on the left tail influence s... |
I am working with a binomial dependent variable (fail=1, not fail=0), and using ratios as independent variables to predict the outcome.
My dataset is n=34, so it isn't. I'm using R. When I use the binomial family with anything more than one predictor, I get a fail to converge warning and the output has humungous standa... |
I have a two-way ANCOVA model of the form
$$y_{ijk} = \mu + \alpha_i +\beta_j+\gamma_{ij}+\delta c_{ijk} + \epsilon_{ijk}.$$
Rewriting this model in matrix notation gives $$\boldsymbol y = \boldsymbol X\boldsymbol\theta + \boldsymbol\epsilon,$$ where $\boldsymbol X$ is the design matrix and $\boldsymbol\theta$ the vect... |
I am trying to run a regression in r using country-level panel data with female labour force participation rate as the independent variable and lnGDP, lnGDP^2, Trade (as % of GDP), Fertility, School enrollment as the dependent variables. In the paper I am basing my estimation method and mode off of, they use two-step G... |
I'm doing a study on the potential of date leaf ash and date fruit seeds as replacement materials for cement and sand, respectively. For date leaf ash (DLA), there is 0% replacement and 5% replacement, and for date fruit seeds (DFS) there is 0%, 5%, and 10% replacement, so all of my treatment groups are as follows:
... |
I am conducting a series of experiments in which I analyse the effect of the order of treatment of bacterial cells with different concentrations of two compounds (Drug 1 and Drug 2). The values in the cells are % reduction of bacterial biomass compared to control (Drug 1 = 0 and Drug 2 = 0) based on the average of thre... |
I recall that a standard deviation is in the same units as the random variable, which is useful.
However, when deriving the standard deviation of a binomial variable, how do we resolve the units of the standard deviation to be "number of successes"?
The standard deviation of a binomial variable is $\sigma = \sqrt{npq}$... |
Let's say you're developing a prediction model, and you are confident that your data are IID. For example, you have a dataset where each row represents a different patient, and you build a model to predict some binary outcome using logistic regression.
Then it comes time to externally evaluate your model, and the (new)... |
A 2020 NeuroIPS paper by Gupta, Podkopaev & Ramdas addresses the calibration of outputs to binary “classification” models, admitting that the raw scores, despite perhaps being on $\left[0, 1\right]$, need not have literal interpretations as probabilities until they have been assessed for calibration and, if necessary, ... |
I have run a mixed effect logistic regression model, and I have obtained a significant main effect of Factor A, while no significant main effect of Factor B. However, the interaction between Factor A and Factor B is significant. Is this possible?
Both of the factors have two levels; let us call them X and Y for Factor ... |
What are the known issues or pitfalls associated with scoring regression/ML models on observations involved in a randomized experiment (a/b test, etc.)?
In a randomized experiment, for most metrics (those directly observed), the difference in per-branch averages provides an unbiased estimate of the average treatment ef... |
Suppose I want to study the association between an exposure X and outcome Y, and I have used the propensity score to match each exposed subject with those unexposed but with similar characteristics based on a set of covariates (C1,C2,C3).
My question is, if I want to additionally test the interaction between X and C... |
I am looking for notation stating x given z is normally distributed. The parameters of the normal distribution are unknown/irrelevant and including placeholder parameters in my context will be too confusing. Is the following acceptable?
\begin{equation}
x|z \sim \mathcal{N}
\end{equation}
|
I'm currently trying to conduct survival analysis where events are not just the binary variables of 1/0 (i.e., did the event happen or not). However, I'm not quite sure how to proceed in this case. My "events" are integers representing the count of non-mutually exclusive events. For instance, a value would be 3 if thre... |
Suppose I have 100 observations of time series data $x_1,...,x_{100}$, and that I want to split the data into a train set, a validation set, and a test set. I know that the train set must have smaller indices than the validation set and test set, but I am torn about how to handle the validation and test sets.
To illust... |
Say I have a non-negative discrete random variable $X$ (values of $X$ can be mapped to integers $(0, 2^n -1)$ for $n \in \mathbb{Z}$) and an associated distribution $P(X)$. Given a non-negative scalar $\alpha$, let us define the following
$f(\alpha)$= $\langle X^2 \rangle - \langle X \rangle \langle X^\alpha \rangle$.
... |
I am trying to Derive the Estimated Variance of Regression Coefficients. I am struggling with the algebra.
Here is the model:
$$y = X\beta + \epsilon$$
$$\hat{\beta} = (X^TX)^{-1}X^Ty$$
First, we find out the expectation:
$$E(\hat{\beta}) = E((X^TX)^{-1}X^Ty) = E((X^TX)^{-1}X^T(X\beta + \epsilon)) = \beta + (X^TX)^{-1}... |
SHAP allows us to compute interaction effects by considering pairwise feature attributions. This leads to a matrix of attribution values representing the impact of all pairs of features on a given model prediction
$\Phi_{i,j} = \sum_{S \subseteq N \backslash{i,j}} \frac{|S|!(M - |S| - 2)!}{2(M-1)!}\nabla_{i,j}(S)$
whe... |
Normally, for a linear regression problem with fixed observations, we have the variance and bias tradeoff as:
$$Var(Y) + Bias^2 (\hat{\beta_x}) + Var(\hat{\beta_x})$$.
My question is what happens to the bias and variance if $x_i \sim N(0, I_p)$. i.e., what would be $$E_{x\sim N(0, I_p), y|x \sim N(x^T\theta^*, \sigma^2... |
I am planning to analyze experimental data using statistical methods, and I intend to perform analysis on repeated measurements using GEE (Generalized Estimating Equations) or RM ANOVA. Some of the measurements are all in proportion values (the number of individuals performing a specific behavior in each replicate).
Pr... |
For my dissertation, I am currently evaluating pharmacy students' perception on two distinct academic electronic health record systems - A and B. The students were asked to identify how much they agreed to a set of statements via a 5 point Likert scale (Strongly disagree=1; Disagree=2; Neither agree nor disagree=3; Agr... |
Here's the database, it's a rather small one: https://www.theadgalternative.com/world_cup_data.html
I dont understand what my N, X, and Y values would be since nothing is really quantitative.
I'm trying to find out if there's a relationship exists between coming out victorious in the shootout and if the victorious team... |
Preacher & Kelley (2011) have proposed an effect size (i.e., completely standardized indirect effect) that quantifies the magnitude of an indirect effect. My question is whether lavaan's Std.all represents this effect size, or whether there are distinctions?
Preacher, K. J., & Kelley, K. (2011). Effect size measures fo... |
I understood that lme4 can be used to fit LMMs including:
$$
\begin{align}
\boldsymbol{\mathcal{Y}} \,|\, \boldsymbol{\mathcal{B}} = \boldsymbol b \;
&\sim \;
\mathop{\mathcal N_n}
\left(
\boldsymbol Z \boldsymbol b ,
\sigma^2 \boldsymbol I_n
\right), \\
\boldsymbol{\mathcal{B}}
\;&\sim\;
\mathop{\mathcal N_q}
\left... |
I am currently working on analyzing protein conservation across amino acid positions using Trident scores as output from the MstatX tool. I have 40,000 Trident score files, each containing amino acid positions and their respective scores.
To streamline my analysis, I initially wrote a bash script to loop through each f... |
I hardly see what kind of advantage a vertical bar chart could have over a horizontal one (edit: by "horizontal bar chart", I mean a chart with bars oriented horizontally). On the other hand, vertical bar charts are so prevailing that it makes me wonder if I'm just lacking imagination or experience.
In particular, I'm... |
I am trying to reproduce this excellent data visualisation from the Economist https://www.economist.com/interactive/uk-general-election/build-a-voter
They have used multinomial logistic regression, and have created a "feature contribution" water-fall style chart to build-up voting intentions of defined demographic grou... |
I am a newbie and I am trying to understand why one cannot run algorithms like logistic regression or decision trees on panel dataset ?
I am running an employee attrition model where the dependent variable is 1 when the employee has quit the organisation voluntarily, 0 otherwise.
The data is recorded quarterly, althoug... |
I'm working on a project where I have two response variables of animal behaviour: one is count data (Poisson distribution), and the other is proportion data (Binomial distribution). I constructed GLMM model for both response variables using the same fixed effects but encountered a situation where different random effec... |
ERROR: type should be string, got "https://learnche.org/pid/latent-variable-modelling/projection-to-latent-structures/conceptual-mathematical-and-geometric-interpretation-of-pls\n\nWhat does the ' mean with t'? I wasn't 100% sure.\n" |
I'm trying to code ordinary least square regression from scratch using Tensorflow and calculate the log likelihood. The results, however, are very different from the ones I get from my baselevel model, in which I'm using statsmodels.formula.api. Could you help me identify where am I making mistakes?
def ols_reg_loglike... |
I have a 2D data array indicating a chemical percentage content (PC) in a chemical droplet.
I am trying to calculate the average PC in the droplet.
The image of one of these arrays is shown below (the colour bar represents the PC):
The droplet, is naturally a 3D (almost hemispherical) structure, so I must calculate a ... |
I have a problem with my data. I want to have a dummy variable to indicate the week number in the year as a predictor. When I look into it, it seems that I need to have 51 dummy variables, and my results become strange when running the code in R.
How can I add dummy variables to indicate the week of year for linear reg... |
I am forecasting a time series with confidence intervals using the ets model in R. Here is the time series:
Running the following R code:
library("forecast")
x <- c(528, 903, 684, 564, 624, 426, 1722, 1185, 1761, 500, 1100,
735, 714, 504, 180, 549, 630, 393, 1272, 1671, 7164, 36,
21, 57, 78, ... |
In the article
https://ginimachine.com/blog/machine-learning-model-evaluation/ there is a proposal of using Two-Sided KS-Tests for evaluating the accuracy of predictions from Machine Learning (ML) models.
How suitable is KS-test for this purpose?
Would it be possible to analyze other kinds of predictions with ks-test,... |
A reviewer of a paper is giving me a hard time about presenting figures which show that my time-varying probability weights have a mean of 1 across observed timepoints. My weights (unstabilized) estimate 1 / (Probability of remaining uncensored) to account for informative censoring in an survival analysis of two treatm... |
Suppose there is a study where they want to test if stopping to eat meat vs continuing to eat meat prevents some disease from happening. The study lasts 3 years and they want to compare the rate of developing a particular disease in:
Group A: people without the disease who stopped eating meat during the study
vs Grou... |
I am considering two time series and I would like to to a VAR regression between them. The ADF test rejected stationarity in only one of them, so the time series would be I(0) and I(1). I understand the two processes can not be cointegrated since one of them is I(0).
Can I proceed with a VAR regression of the 'levels'... |
I'm facing problems with determining the right number of clusters for my 2D time-series data.
I have a numerical simulation that outputs a time-series of 2D grids that represent a mass density evolving in time (imagine a drop of liquid spreading from the center of the box) for a certain set of parameters (that characte... |
Given uniform distributed random numbers on a sphere, how can I undersample it, so reduce the number of data points and obtain a subset which keeps the uniform distribution ?
I tried to search on Google but I find only ways to generate a uniform distribution on a unit sphere...
Any advice would be appreciated.
Thank yo... |
The setup for the current question is the same as a previous question of mine, with one important difference: I have decided to go for a paired test, by always performing two consecutive experiments with the two possible inputs (zero or random), although I randomize the order (zeros first and random second, or vice-ver... |
I have a dataset where I know the number of attempts and number of failures for a large group of individuals. I have calculated the failure rate of each and I suspect that as there are more attempts by an individual, they are less likely to fail. I have the plots below of failure rate vs attempts and another with a log... |
I am having trouble linking these concepts together:
Here is a Cox PH (Proportional Hazards) Regression Model:
$$h(t|X) = h_0(t) \exp(\beta^T X)$$
where:
$h(t|X)$ is the hazard function for an individual with covariate values $X$.
$h_0(t)$ is the baseline hazard function, representing the hazard for an individual wi... |
I am trying to model a population over a span of time. The span of time is between the birth of the first person and the death of the last one, say the years 1867 and 2151. Total people born is a known number, say 14313. We can assume that the number of people alive at any moment follows a normal distribution. How can ... |
I am trying to calculate the reliability of a difference score. Specifically, the data have, for each participant, scores for 10 items in Condition X (1s and 0s), as well as 10 different items in Condition Y (1s and 0s). The difference score is the mean of Condition X minus the mean of Condition Y. Each participant ... |
This post on Stack Overflow says that the autocorrelation, or self correlation, of vectors is defined as
$$C(t, \{v\}_n) = \frac {1}{n-t}\sum_{i=0}^{n-1-t}\vec v_i\cdot\vec v_{i+t}$$
What is the source of this formula? Can you give me a reference?
|
Im currently using Lasso to build a predictive model for numeric variable .
Before scaling the features I split the data for train test and validation . I have a feature named 'year' and i wanted the data to be split in a way that each value of 'year' will be in train test and validation ( Im dropping the 'year' featu... |
I have spatial data on property prices and I've fitted a GWR, calibrated on all points.
I haven't seen cross-validation or out-of-sample testing approaches applied to many GWR models in literature, Is it necessary/possible to test the GWR on out-of-sample data?
For my model, the bandwidth is calibrated using Leave one ... |
I'm doing research on the effect of strategic video game play on students' mathematical ability. My independent variable is the number of hours spent playing strategic games daily, but my data is not continuous; rather it goes by interval range (e.g., <1 hours, 1+ hours, 2+ hours, 3+ hours). Meanwhile, my dependent var... |
In GLMs (generalized linear models), the negative of the Fisher information matrix takes the form of a cross product between covariates $\mathbf{X}$ and a diagonal matrix:
$$
\mathbf{X}^T \mathbf{D} \mathbf{X}
$$
Assuming that one is using maximum likelihood on a probability density function $p(z|y)$, applying an inver... |
Our research group studies edge effects of disturbances on adjacent relatively undisturbed ecosystems. We evaluate metrics such as light levels that may be higher at forest edges relative to the interior and the cover of vegetation groups. At the moment, we are exploring continuous data analysis techniques to analyze o... |
LeBron James has averaged 27 pts, 7 rebounds, and 7 assists per game essentially since his debut in 2003. Despite this, he has never had a game with a stat line of exactly 27/7/7.
I'm interested in calculating the joint probability $P(Pts = 27, Reb = 7, Ast = 7)$. I had thought to model these as Poisson RVs. However, I... |
I have a dataset from a trial of a new method to encourage people to vote. The dataset has three variables:
cond: treatment vs control
predictive_score: A value from 0 to 100 reflecting how likely someone is to vote based on demographics and vote history, with higher numbers representing larger probability of voting
v... |
How can I calculate the significance of the Hartley's Fmax test in R using only the Ns and SDs with data that have different Ns?
For example, for only 2 groups:
n1 <- 50
sd1 <- 23.7
n2 <- 70
sd2 <- 130.4
|
I have a quick question regarding whether the following event might pose any issues for my study.
I am interested in exploring perceptions of climate change. In the early 1970s, former dictator Park of South Korea selected nine regions in Korea and established heavy chemical factories in them, subsidizing their develop... |
I have data (y) from experiment with three drugs (D={D1, D2, D3}), two treatments (T={T1, T2}) within each drug and several subjects S. The data y were normalized such that within each subject and each drug, the data y were divided by the average value of the first treatment T. Thus, the values y with all drugs with tr... |
I am measuring the differences in fungal abundance in different stages of grazing and depth so I have tow factors (grazing intensity and soil depth) My main effects are all significant but so is the interaction.
However, does that mean the hypothesis that grazing will effect fungal abundance is true because if there is... |
If $ \hat{\beta} = (X'X)^{-1}X'y $ with $ X $ being an $ n \times k $ matrix, then as I understand it, as long as $ k \leq n $, $ X'X $ is invertible (as long as all other OLS assumptions are fulfilled), and thus there is a unique solution for $ \hat{\beta} $. But if there is a perfect fit with $ k = n $, is it then tr... |
Let's say I am comparing the impact on features for a housing market. If I were to take the data for all houses in a region with a value between USD 200,000 and USD 500,000 and compare how individual feature differences (e.g. Bathroom Count, Square feet, etc.) affect their price, how would I accurately portray these im... |
I am using LogisticRegressionCV of sklearn, and I would like to know the explicit form of the L2 regularization in Logistic Regression.
In the official page of LogisticRegressionCV, it is written $Cs$ is "inverse of regularization strength", but it is not clear what is the explicit form of the regularization term.
In t... |
I was reading this paper on the Multivariate Bernoulli Distribution, which provides the general form of the PMF in equation 3.1. The paper refers to this as the probability distribution function, but they likely meant the probability mass function.
They also calculate the log-likelihood function.
I am trying to figur... |
Right now I am dealing with Causal Inference and Structural Causal Models(SCMs). Judea Pearl talks about Markovian and non-markovian SCMs. A SCM is Markovian if P(u_1,u_2,...,u_n) = P(u_1)*...*P(u_n) where u_i are the exogenous variables.
Why is a SCM which induces the following graph not markovian?
u1 -> x1 -> x2 <- u... |
I'm not sure if I'm using the right terminology but hopefully the code and plot will explain it well. I have six samples in two groups. Sample 1, 2 and 3 are in Group 1 and Sample 4,5,6 are in Group 2. All samples fit a beta distribution. I want to use a statistical test to explain the difference between the two groups... |
The iterative update rule for policy evaluation that is, approximating the value function for a given policy is:
$$v^{k+1} = r_{\pi} + \gamma P_{\pi}v^{k}$$
This is the simultaneous update rule where the new values of the value function vector are calculated only using the old estimates.
An in-place (Gauss-Seidel type)... |
Sometimes we encounter data that is uncorrelated. Specifically, from the correlation matrix we observe that the target variable shows low or no correlation with any of the features.
To provide context, I am working on a predictive maintenance project. I am asking in relation to tabular data containing continuous or cat... |
I am new here, reading a lot what null hypothesis is but not quite get clear picture. Could someone give me a simple explanatation or example please.
|
I have some data of with the relationship
Y=commonFactor+error1 and X=Alpha+Beta*commonFactor+error2
I want to test the hypothesis that Beta is non-zero, or that there is a significant relationship between my measured X and Y, or that they share a common factor. I've read that null hypothesis testing isn't possible in... |
I am aware the question is a bit generic, but any hint that would point me in the right direction is welcomed.
Consider I have a dataset with few variables:
gender
type of education (bachelor/master)
geographical region (europe/asia/...)
level of english (A1 to C2)
salary (in PPP USD)
Now I test for difference of mea... |
Nagayasu uses forecast error variance decomposition (FEVD) to prove a bidirectional causal relationship between endogenous stationary variables in a two-dimensional vector autoregression (VAR). What FEVD values would indicate no causality in this framework?
|
I want to analyse the effect of the sports membership fee on the cancellation probability with a simple regression. When a person leaves a sports club (Cancel = 1), their membership fee is automatically set to 0, as they no longer have to pay. This leads to a particular situation in my dataset:
Individuals who leave/ar... |
I am new to r programming and have ran into an odd situation while plotting a QQ plot for studentised residuals with ggplot2. See code and plot below:
> rstandard(model_iq)
1 2 3 4 5 6 7 8 9 10 11 12 ... |
For my master's thesis (machine learning) I am studying the effect of using a certain type of classifier on the stability of feature importance techniques (SHAP & LIME) under different levels of class imbalance. While the details of the study itself are less important, the result of the study are coefficients of variat... |
I'm using block bootstrapping for some simple autoregressive time series models, and I'm running into pretty high bias in the bootstrapped estimates of the autoregressive coefficients, even from large block sizes. This is somewhat surprising to me because I am using 1) time series with short dependence structures (e.g.... |
If the parameter $\theta$ is Gaussian with mean $0$ and covariance matrix $\Sigma$, then the function $f(x;\theta)=x^T\theta$ is a Gaussian process indexed by $x$, which can be characterized by a mean function $\mathbf E[f(x)]=0$ and a covariance function $\mathbf{Cov}(f(x),f(x'))=x^T\Sigma x'$. If $\theta$ is a Gaussi... |
I'm reaching out with a question that, at first glance, might seem elementary, but given some perplexing advice from my thesis supervisor, I find myself in need of your expertise.
The scenario is straightforward: we have two groups of shooters, each with 100 participants. Every shooter takes 10 shots, and each shot is ... |
So here is another question regarding bayesian updating, which I try to understand.
In my scenario, I sequentially process single pieces of information from an unknown distribution.
I am interested in estimating the mean of this distribution.
According to my readings, best would be, to know the variance of the observed... |
In Advanced Learning Algorithms by Andrew Ng, Coursera:
One thing that makes backprop efficient is you
notice that when we do the right-to-left calculation,
we had to compute this term,
the derivative of j with respect to a just once.
This quantity is then used to compute both the derivative
of j with respect to w an... |
I'm studying Bayesian inference with the famous Bayes formula.
To calculate the posterior, we need prior, likelihood and (sometimes) evidence. When I say "sometimes" it's because there are cases for which we don't need this normalization constant and we make the assumption that the posterior distribution can be approxi... |
I'm pretty sure I'm misunderstanding something quite obvious here but I'm rather confused.
I have multiple time-series that have been smoothed with a gaussian kernel. My goal is to regress the time-series from a condition 3 ($y_t$) on the time-series from conditions 1 & 2 ($x^1_t$ and $x^2_t$).
More formally, this woul... |
I've built an error correction model using two stage OLS - first an OLS on the cointegrated I(1) variables in levels to get the cointegration coefficients, and then an ARDL in differences with the lagged ECT using the residuals of the cointegration model and lagged differences of the predictor variables.
The long-run O... |
I want to run a linear mixed regression in which, basically, I see whether the expression of a particular gene is associated with a trait exhibited by the animal. I'll use growth rate as an example. However, I need to take into consideration confounding factors, including those which impact growth rate (e.g. pedigree, ... |
Let be $X$ and $Y$ two random variables such that, for any event $A$,
$P( X \in A \mid Y) = P(X\in A)$ with probability 1.
Can I conclude that $X$ and $Y$ are independent ?
|
I was studying the properties of multiple linear regression, and stumbled across the F statistics often used for the tests. We are testing for the regression coefficients (let's say there are $p$ variables aside from the intercept term):
$$H_0:\beta_1=\dots =\beta_p=0$$
versus its complement.
We all know that under nul... |
Single subject study test force with:
2 Devices simultaneasly (A and B)
5 differents positions (s1,s2,s3,s4 and s5).
2 differents rooms (Y and Z)
Repeat each position 6 times consecutly. Different rooms test in different days.
Interested in:
With the same device, can we find significance differences between rooms?
I... |
Suppose there is an urn consisting of black and white balls. This urn is filled with a proportion $a$ of black balls, where $a\sim U[0,1]$.
Balls are consecutively drawn from that urn (with replacement). After observing $n$ draws, out of which $k$ show a black ball, the estimated proportion of black balls in the urn is... |
I would like to compare the different variables in a life table of two populations and check if the differences are significant. However, I am totally unsure which test is appropriate.
For example, I wanted to test if life expectancy is different in population A (50 individuals) and B (70 individuals).
Life expectancy ... |
Ive collected data for force measurements (response variable) based on 3 factors in unique tests
material type (2 off) (I assume this is categorical)
tool radius (2 off) (assume this is discrete as its not continuous)
tool rake angle (3 off)
I have 4 to 5 repetitions per unique test
The response variable data as in. ... |
I am trying to understand how to use propensity score matching in a real world example (e.g. case control study).
Step 1: Based on what I understand, I think a Logistic Regression is first used to estimate the Propensity Scores:
$$P(T=1|X=x) = \frac{e^{(\beta_0 + \beta_1x)}}{1+e^{(\beta_0 + \beta_1x)}}$$
$T$ is the tr... |
Context: this question is a follow-up of this other question in which I'm trying to understand why we should use methods for causal inference instead of just training machine learning regressors, especially when dealing with continuous data.
I'm working on a causal dose response estimation problem with a continuous tre... |
Graphical Models uses that correlation 0 is equivalent to independence for multivariate normal distribution. Then we can make a graph where there is an edge between two nodes if the correlation is not 0. Then we can establish conditional independence of componenets in our graph. But unlike regression methods which is s... |
My question is very simple, but no matter where I look it up, it seems that I get another answer.
Take a simple classification task. Let's say I trained a kNN, LDA and logistic regression on it for simplicity. For kNN I already determined the optimal number of neighbors (hyperparameter) via cross validation.
Then what ... |
How does one determine the probability that an event will eventually occur given competing risks?
Given the following state machine, I am trying to determine the probability that an observation in state A at time $t_i$ eventually ends up in state C (as opposed to state D).
I am considering using Weibull-AFT to estimat... |
I want to model a time series process as follows:
There are a total of T periods. I want to model audience dynamics. There is an initial audience of $N_0$ that evolves over minutes indexed by $t$.
Each period is characterized by a binary state (R(ed), B(lue)) with an indicator function $f_t^R = 1 \quad \text{if} \quad... |
I would like to do competing risk regression with attained age as time scale. People enter the analyses at an age that is 5 years after their disease diagnosis and exit at the end of follow-up.
For regular Cox regression analyses, we use something like:
coxph(Surv(time=entryage,time2=exitage,event=EventYesNo) ~ Treatme... |
I have a two distributions of human-estimated (subjective) probabilities. Namely, let's say I have a group of meteorologists and a group of laypeople. Each person in either group estimates p(x) as the probability it will rain tomorrow.
I want to compare the group of estimated p(x)'s from the meteorologists with the est... |
I have a data frame in R from 1981 to 2022 with minimum latitudes associated with each year. In this particular data frame, the latitude does not change at all for all 42 years. I run a Mann Kendall on this data but it returns a P value less than 0.05. Am I doing something incorrectly?
## My Code ###
BF.Min <-... |
I am trying to calculate the R-squared value of a logistic regression model using the clogit function after multiple imputations with mice package in R. Here's the code for the model:
fitt2 <- with(imp30,
clogit(Prognosis ~ stromal_TILs + hair_follicles +
Upward_scatter, strata(Set_ID)))... |
I'm running a survey where I'd like to compare three models with the same set of variables except for the moderator.
I'm looking for the strongest interaction effects as a foundation for subsequent experiments.
To be more specific, I would run hierarchical regression analyses with the same covariates, and the same IV, ... |
I am interested in performing the "exact" versions of G-tests of independence in R with nonparametric table enumeration after having been told that this could help with achieving more accurate $p$-values at lower expected sample counts compared to the default, more "approximate" test that just calculates a single $G$ v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.