instruction stringlengths 9 38.7k |
|---|
I would like to examine the relationship of a variable Y with a social construct.
There are three tests (A,B,C) that more or less characterise different aspects of the construct
(f.e., A= laboratory test versus B= questionnaire about everyday life, ...).
Also, the disadvantage that biases one test are partially resolve... |
Here is the data.
when the numeric variable is below 100, I can get its accurate number but when it is above 100, I can only group them into >100, >200 and >300. The explaining variable is discontious variable with 2 groups only.
how can I analyse this kind of data as the data exhibit both continuous characteristics an... |
In 'big data' settings where the number of samples $n$ may be very large (for fixed number of features), is bagging less or more effective at reducing variance? I heard the claim that it is less effective but intuitively it should be more effective, since the chance of overlap between bootstrap samples must be smaller,... |
I want to run an LMM with a 3-level fixed factor "block_condition" (levels: A,B,C) and 2-level block_number (1,2). SubjectID was also added as a random factor to the model.
Now the problem is that I have for block_condition A and B - two repetitions/levels (A1, A2, and B1, B2), but in condition C, I have only 1 repetit... |
I am working on my school project, is about the study of household expenditure pattern using regression approach. Say that I having following linear ols regression model, where y is household expenditure.
$$
\begin{equation}
y= ε+B_0+ ∑_1^k B_k X_k
\end{equation}
$$
where $y$ is the dependent variable, $X$ are the in... |
What test would fit for the following research question?
Data: measured in 5 subsequent years, is within design
Dependent variable = A is categorical and ordinal
Independent variables = B, C, D and E, where D and E are categorical and ordinal and B and C are both numerical.
I would like to test whether a change in B or... |
I heard that a sufficient amount of variance/heterogenity is needed in order to get reasonable results for a correlation test.
Why is that and what solutions exist when variance is too low?
Is splitting the obervations by a cut-off reasonable? F.e., the median?
(This question also relates to floor and ceiling effects)
|
I am using girth package which uses polychoric correlation and then applies factor analysis. I am using the example code given on above webpage under the subheading "Polychoric Correlation Estimation":
import girth.synthetic as gsyn
import girth.factoranalysis as gfa
import girth.common as gcm
discrimination = np.ran... |
maybe someone can help me with my data.
I analyse how macroeconomic indicators affect stock index. For this analysis I prefer VAR model.In my case data of all variables are non-stationary - I have checked it by plots and also with adf test.Also I made unit root test and it says that all variables have unit root. After ... |
What are not-too-complex methods to perform logistic modeling if some of the predictors are right-censored?
|
I have a log-level model and I have trouble with the interpretation when I have an interaction term of two continuous variables.
I came across this when I tried to get the grips of the difference when the covariates are standardized or just centered.
So usually in a log level model I would interpret a one unit increase... |
Is Design Effect (DEFF) possible to be zero?
Note: Design Effect (DEFF) is defined as the ratio of the variance of an estimator
under a certain survey design (non SRS) to the variance of the estimator under
SRS (simple random sampling).
|
I'm studying the endowment effect through the exchange paradigm. Participants received an object A or B. Then the experimenter asks the participants if they accept to trade their object with the alternative object.
I would like to compare the proportion of participants who refuse to trade A with B, with the proportion ... |
Suppose that Walmart has 1,000 stores. It has a 20% coupon for cereal, and it hypothesizes that the coupon will increase the sales of cereal by 3%.
Walmart put the coupon in 100 stores on 2022-05-01; the other 900 stores continue to have no coupon. Unfortunately, it does NOT have any sales data from before 2022-05-01. ... |
I am new to generalization techniques in machine learning and I have been experimenting with them recently. I have observed that when I apply them to my model, the performance of the model improves, but the results also become more variable when I try to rebuild the model. For example:
Regular model has an r squared o... |
This table shows the results of a Kruskal-Wallis test, but I am not sure what the column values represent. I thought the Kruskal-Wallis test statistic is always positive and that the test merely shows whether there is a difference between groups. In the text, the author makes statements such as:
Compared to all othe... |
I am trying to measure the effect of a campaign on the knowledge of a certain disease on population X
method 1: measure the same individual’s knowledge two times once before and once after passing through the campaign
method 2: measure two different groups from the same population, one group has passed though the campa... |
1. Could you provide an example of how to hypothesize the variance and covariance expectations for a multi-level model with random slopes and random intercepts?
I do not yet have access to my data, so I am unsure how to write the model formula to determine the E[Var] and E[Cov].
I am learning about mixed-effect modelin... |
Suppose I have 25 dice. I roll them all each day unless the number '6' appears, in which case I discard the die. For example, suppose on day 1, two of the dice roll a 6. I remove them. On the second day, I therefore roll 23 dice. 5 of them land on a 6, so I remove those. On the third day, I roll 18 dice, remove those t... |
I'm analysing slightly unbalanced panel data in r (n = 136, T = 9-213, N = 24894) and planning on using fixed or random effects (Hausman test indicates random effects, but high likelihood of omitted variable bias in the model due to lack of available data so unsure whether that means that random should be ruled out in ... |
I am having trouble learning the relevant concepts of t-test.
Even if you search the web or books, the explanation is slightly different, it causes confusion.
(Please understand that I am not a statistics or math major)
[On the requirements of t-test]
(assume we are interested in the mean value of something)
Someone s... |
This question is a generalization of another question that I asked here.
Suppose that Walmart has 1,000 stores. It has a 20% coupon for cereal, and it hypothesizes that the coupon will increase the sales of cereal by 3%.
Walmart put the coupon in 100 stores on 2022-05-01; the other 900 stores continue to have no coupon... |
I have a dataset with counts of birds in two locations over time, and am interested in describing the difference in trends in bird counts between these locations. The counts are conducted by multiple observers, which are included as a random effect. The data is best modelled using generalised poisson or negative binomi... |
I'm trying to understand the RESET Test for Regression Models. We assume that the dependend variable y is a function of the indenpendend variable x. We can write $y=f(x)\approx \beta_0+\beta_1x+\beta_2x^2+\beta_3x^3+\ldots$ because of the Taylor Expansion.
Now my question: Why don't we regress y on $x, x^2, x^3$ and lo... |
I have made the following model in DAGitty:
Where X2 is controlled for.
DAGitty says:
The total effect cannot be estimated due to adjustment for an intermediate or a descendant of an intermediate.
My understanding is that I can estimate the total effect if I control also for X1, other than X2, as that would block th... |
Please help me to figure out the final result in a glmmTMB. I used this code
model1<-glmmTMB(ctmax ~ lat+ (1|site), dispformula=~lat,data=data)
summary(model1)
got this output
Family: gaussian ( identity )
Formula: ctmax ~ lat + (1 | site)
Dispersion: ~lat
Data: data
AIC BIC logLik d... |
I've come across two different formulas in my studies to calculate the output shape of a convolution.
Below, $I$ is the input image size, $K$ the filter size and $S$ the stride.
$$
\lfloor \frac{I - K + 2P}{S} \rfloor + 1
$$
and
$$
\lfloor \frac{I - K + 2P}{S} + 1 \rfloor
$$
I've computed quite a few examples and I com... |
I have read on many occasions deep learning practitioners recommending to treat regression problems (with continuous variables) as classification problems, by quantizing the output into bins and using cross-entropy loss instead of L2 loss.
For example these notes from Stanfords's CS231n class on CNNs:
It is important ... |
This time, I calculated a non-negative dataset which SD is larger than mean
I have seen many people use 'mean ± SD' to show mean and standard deviation.
But I wonder whether we can use that form for non-negative dataset.
The original data can't be lower than 0 but if I use ± it looks can be negative number(like 1 ± 3).... |
I’m working on a report on length of berth stays for cargo vessels visiting different ports. I would like to be able to benchmark whether vessels in a given fleet (i.e. a customer’s entire fleet of vessels) have shorter/longer berth stays than other vessels calling the same ports.
The length of a berth stay depends on ... |
I face with a problem of doing a time series forecasting on multivariate data in the form where different entities have their own 100-day (daily) series of 10 variables, and I'm expected to predict 10-day steps of the response variable in the future.
Now, I'd like to handle "outliers" in the data, and I wonder how to i... |
Can someone please summarise the difference between these 3 boosting algorithms: AdaBoost vs GBM vs XGB?
|
A real-valued feedforward/fully connected neural network with activation function $\sigma : x\in \mathbb R \mapsto \max \{0,x\}\equiv \text{ReLU}(x)$ can formally be seen as a function $f_\theta :\mathcal X\subseteq \mathbb R^{d}\to\mathbb R$ defined by the expression
$$f_{\theta} (x) = A^{(L)}\circ \sigma \circ A^{(L... |
I ran this code and found the result. Could you please help me to figure out my model follows DHARMa residual?
model1<-glmmTMB(ctmax ~ lat+ (1|site), dispformula=~lat,data=data)
summary(model1)
Got this result:
|
My dataset is composed of various country-level observations over the years. I am interested in the cross-sectionnal dimension of my database rather than the time series aspect. For this reason, I decided to turn this panel dataset into a cross sectional one. To do this, for each variable, I take the mean value of each... |
I have a sample of data with n=200 and I would like to predict my descriptive statistics such as mean, Std Dev and 95% CI when I have specific sample size for example n=10 based on the current study.
I assumed my population follows the Normal distribution and I applied t test to calculate CI.
What I have done, I appli... |
Let $X$ follow normal distribution with mean $\mu_X=10$ and variance $V_X=20$. Let $Y$ follow truncated normal distribution with mean $\mu_Y=-10,V_Y=8$, where $Y\leq 0$ by truncation.
Let $Z=X+Y$. Denote $z_1,\dots, z_N$ be $N$ realizations of $Z$. Now I want to recover $\mu_X,V_X,\mu_Y,V_Y$. Suppose I put appropriate ... |
I am testing simulation of the lognormal distribution against the lung dataset, as an example of right-censored data, from the survival package. Goodness-of-fit tests indicate Weibull provides best fit, but please bear with my example as I try getting my arms around the lognormal distribution too.
When I run the code p... |
I wonder if using a propensity score in the following situation is wrong. Imagine I have the next causal model
$$X = N_x$$
$$Y = f(X, N_y)$$
$$ Z = g(X, Y, N_z)$$
Where $N_z, N_y, N_x$ are independent random variables. One example of such a model is $X$ is race, $Y$ is education $Z$ is income. If I wanted to estimate ... |
I originally asked this question on stackoverflow here, but was advised to move it to Cross Validated for a more appropriate place to have this discussion.
A commenter pointed out that my situation looks like it could be an example of the Simpson's Paradox. While this seems fitting based on the description that "a tren... |
I'm using scikit learn's 'KFoldStratified' for a classification task where I have 64 samples, evenly split across 8 labels. I notice the folds are as follows:
Test 0, 8, 16...
Train 1...7, 9... 15
Where the first element of each label is used in the test set and the remainder in the test set. The same situation is set ... |
I want to train image segmentation model using U-Net with pretrained ResNet34 as encoder. My dataset is really small, i separate it with
Train data : 57 images
Validation data : 16 images
Test data : 8 images
So, with that data, i want to use image augmentation on train data, but should the validation data be augment... |
Context
Assume a game using a fair 6 sided dice ends when one rolls a 6. A random variable N is the total number of throws. N is distributed such that:
$p_N(n) = \frac{5}{6}^{n-1}\frac{1}{6}$
Assume you win 1 point for an even number, and -1 point for an odd number.
$X_i$ is a random variable denoting point's gained fr... |
I am working on a high-imbalanced (80-20 ratio), high-dimensional dataset (200 sample size, 300 features) where all variables are highly correlated. Can I remove the perfectly correlated (using Pearson's correlation coefficient) variables (6 variables) before cross-validation? Does this cause any information leakage?
|
Apologies if this is too simple of a question. I work with population data from the census, which provides a margin of error for all their variables. Reviewers have asked that I account for the MOE in census data but I'm not quite sure how to do that in a regression model. For example, in large census tracts, there can... |
I have 8 measures: A_1, A_2, A_3, A_4, B_1, B_2, B_3, B_4. I know from the correlation matrix that they are all related. I would like to find the latent variable structure.
Using lavaan in R, I found that the first four variables (A_1, A_2, A_3, A_4) can be explained by one factor/latent variable:
mA <- 'fA =~ A_1 + A_... |
Currently I watched the videos (links below) that argues using the normalization (max-min scale) is the bad idea when it comes to the stock prediction. In the videos, the editor aruges that people should use stadardization instead of normalization, becasue in the prediction, you never know the "highest" price and "lowe... |
I'm experimenting with univariate time series using the following approaches that suit time-series analytics in order to transform the data in a way that the inputs to the model are the targets of previous K observations:
1. lookback period, example1, example2
#ِDataset matrix is formed
def create_dataset(df , lookback... |
I have a question concerning different results between linear regression and the direct effect of mediation analysis.
Indeed, linear regression between predictor X and outcome Y showed a non-significant relationship. However, when I add a mediator within a mediation analysis, the direct effect between X and Y is signif... |
[EDIT: had fundamental misunderstanding, rephrasing question - thanks to @whuber for catching that]
I have some pretty simple regressions (linear & logistic) predicting a rate (continuous response var, linear regression) & direction (binary response var, logistic regression) from certain features of the distribution of... |
Let $\bf A$ be an $n \times n$ matrix with rank $r$ where $r<n$. How can I get a full-rank approximation for $\bf A$? In other words, I want to find the rank-$n$ $\bf X$ that minimizes the Frobenius norm $\|\bf A-\bf X\|_{\text{F}}$.
|
I want to run a diff-in-diff regression for a pre-post rollout experiment. Assume for a moment that I have subjects impacted by the experiments.
To validate the trends, I AGGREGATE subjects to a daily basis, and I found a 'PERFECT' (assume this) parallel trends between my control and treatment on a daily basis.
Once I ... |
Let's consider a multi-class classification problem with 4 classes: 0, 1, 2, and 3
F1-Score 'macro'-averaged is calculated like that:
F1_macro = 0.25*F1_class0 + 0.25*F1_class1 + 0.25*F1_class2 + 0.25*F1_class3
On the other hand, supposing that the relative supports for the classes are:
class 0: 0.4
class 1: 0.1
clas... |
I’m working with big, imbalanced data set for a binary classification challenge. Big in the sense that it’s hard to digest all at once, and imbalanced in the sense that for every positive example there are about 1000 negative examples.
My approach:
reduce size by down-sample the negative examples in a manner that woul... |
I am working on a computer vision problem (chessboard recognition), and my goal is to find the lines that correspond to the chessboard lines. I want to do this via Hough transform, since said lines usually appear as a bunch of clustered points along a sinusoidal curve (although I approximate the curve with a straight l... |
If there is discrete-time batch markovian arrival process with parameter matrices ${\bf D}_k$, $k\geq 0$ then the mean arrival rate per time slot is given by $\lambda={\bf \pi}\sum_{n=0}^\infty n{\bf D}_n{\bf e}$, where ${\bf \pi}$ is stationary vector for D-BMAP and ${\bf e}$ is column vector of all elements one. Now ... |
I'm really lost in this topic, and I want to ask for help here.
I have a continous variable of interest (X), but also factors that I think they can affect my results (for me the most interesting factor is Sampling site). So, I have made this formula for adonis2:
X ~ Sampling Site + Year + Sex + Age + Sample Type
(Sampl... |
I have a complex physically-based biological model which solves partial differential equations to predict the number of individuals in a certain community as a function of temperature, salinity, and chlorophyll concentration. Therefore I have 20 years of daily data for the number of individuals N (i.e., the model outpu... |
Is there a term or name (or better yet, strategies) for the following problem?
Take a 'standard' $k$-armed multi-armed bandit problem (stochastic real rewards, IID pulls for a given arm), but instead of maximizing the mean sum of rewards across $H$ pulls, maximize the mean maximum reward across $H$ pulls.
(I know that ... |
My data has 5 dependent variables (measured amount of oxygen, halides, nitrogen, sulfur, and organic) and one independent variable with 2 "treatments (flow rate, 1 Lpm or 2 Lpm). The catch is: I have multiple pairs of data for 2 treatments, which are not for the same sample (each pair is its own sample, taken at a diff... |
I am calculating the odds ratio of a binomial logistic regression model using exp, is there a function to calculate the 95% confidence intervals?
model_1 <-svyglm(formula = ACV_COVIDCAR_NEW_1~DMV_H_OPMDCD_combined_factor, design =
data2, family = "binomial" (link="logit"))
summary(model_1)
exp(coef(mod... |
I like to do feature selection and I am using multiple feature selection algorithms provided by sklearn. What I have done is, use a bunch of feature selection algos and get the score for each feature. This returns a dataframe where the index is the features and columns consists of the scores returned by the different f... |
I am conducting a meta-analysis and am trying to produce a forest plot displaying the mean weighted effect size with and without the outliers. I looked on so many websites and tried a lot of syntaxes, however, didn't really find anything about what I am looking for.
Assume there are 5 studies in the meta-analysis. Outl... |
I have some data that looks like:
$x_i$
$y_i$
10
20
11
21
12
25
1000
2001
The current method for forecasting an unseen $y'$ based on a known $x'$ is to estimate it as:
$$\hat y' = \frac{1}{n} \sum_{i=1}^n \frac{y_i}{x_i} x'$$
That is, we take the arithmetic mean of the ratio of $y$ to $x$ and apply it... |
I am trying to build an ARDL model with the six following variables: lnNO2,lnP,lnGDP,lnEI,lnU and lnU2 (one response and five dependent variables). The variables I am using are shown below:
One of the preconditions of an ARDL is that all the variables are either I(0) or I(1). But when I conduct the Zivot-Andrews unit ... |
Is it normal to have different results pattern if data sort is different but the covariances are the same when calculating with propensity score matching in R?
There is data with sample size of about 100.
If I calculate for P-value of the operation time from the data sorted by the operated day, there is no significant ... |
I'm very new to all this so please bare with me. All advises and corrections are welcome.
Context
I have the following dataset:
id,level,condition
#123,1,0
#576,1,0
#663,2,1
#945,1,1
#712,3,0
#981,1,1
#851,3,1
#361,1,1
etc...
the id for each user is unique. I have one row per user. The level is the level of engagement... |
Consider a normally distributed random variable $X\sim N(\mu,\sigma^2)$.
Since $\Pr[X\leq x]=\Pr[(X-\mu)/\sigma\leq (x-\mu)/\sigma]$, the following equality holds:
$$\Phi(x|\mu, \sigma^2)=\Phi((x-\mu)/\sigma\;|\;0,1)$$
where $\Phi(\cdot|\mu,\sigma^2)$ is a CDF of a normal distribution with mean $\mu$ and variance $\sig... |
Suppose the distribution $F$ is absolutely continuous. Is there a way to compare (i) the monotonocity of the hazard ratio (i.e., strictly decreasing/increasing); (ii) the skewness of the distribution (i.e., positive or negative); and (iii) the concavity or convexity of the survival function.
I have the intuition that a... |
I have a code segment from this repo:
https://github.com/toshikwa/slac.pytorch/blob/master/slac/utils.py
I am reading a paper about Soft Actor-Critic, a reinforcement learning algorithm. They have you sample from a Gaussian Log distribution. I believe that would mean you use the PDF to sample from. I am making a lot o... |
I ran a multiple regression using statsmodels. I wanted to verify my understanding of calculations for log-likelihood (ll), AIC and BIC. So I attempted to manually calculate the ll, AIC and BIC for the regression and compare my results to what I got from statsmodels. The results I got are a bit off for AIC and BIC.
Bel... |
Consider a null hypothesis:
\begin{align*}
H_0:\;\beta=0
\end{align*}
Here, we can estimate only the upper and lower bounds of $\beta$.
To be clear, let the upper and lower bounds of $\beta$ be $\alpha_u$ and $\alpha_l$, respectively, then what we can get is the estimate $[\widehat{\alpha}_l,\widehat{\alpha}_u]$.
I am ... |
Suppose we take the classical linear regression model:
$$y_i = \beta_0 + \beta_1 x_i + \epsilon_i$$
Over the years, I have heard so many people say that such an interpretation can be drawn from this model:
On average, a one unit increase in $x_i$ "causes" a $\beta_1$ unit increase in $y_i$
However, we are also told t... |
Power, in a two-sample test, is partially determined by the narrowness of the confidence interval for the test statistic the alternative hypothesis is tested over.
This is captured in this photo
via Wikipedia
I'm confused how power can be calculated in the case of a one-sample hypothesis test of means, where we're set... |
If feature importance is only calculated from the training set according to here, does it mean one should never compute shap values on test set? What would it mean if I compute shap values from test set ?
For instance, if i have the following code, clf_opt is a random forest estimator and the code runs without any erro... |
I have 100k historical horse races. The data is sequential in time, so I am wishing to use online learning to train an LSTM (or sequential attention model or something similar...) such that the model updates after each race. The output of the model should correspond to the probability of each horse in a new race winnin... |
Background
Discussion from http://blog.geomblog.org/2005/10/sampling-from-simplex.html and https://cs.stackexchange.com/questions/3227/uniform-sampling-from-a-simplex have shown algorithms of sampling from unit simplex uniformly:
Let $X_i \sim Exponential(1)$.
Then $X_i/\sum_i X_i$ gives an uniform sample in unit simp... |
I have relatively large data sets with about 20000 to 25000 data. The data are the orientation angles (0 - 180°) of fibers in a composite material. You can see two example histograms showing the most extreme histograms. The first one has a "nice" bell-shaped distribution, the second one is also bell-shaped but the tail... |
There is a folklore white noise hypothesis related to (and equivalent to some forms of) the efficient market hypothesis in finance -see references below. But are there some asset pairs whose return time series (or perhaps some "natural" transforms of those time series) are approximately noises of another color than whi... |
There is a lot of contradictory information about the purpose of phase 2 clinical trials.
Many sources claim that the aim is to test whether a treatment works, and sample size calculators exist to compare a response rate in a treatment group (as a binary statistic) to a historical control.
But it's clear that a phase ... |
I am trying to find a way to calculate the likelihood that a machine will fail. Specifically, I would like to receive a prediction such as, "There is a 28% chance that this machine will fail within the next 3 days." To do this, I have a time series of sensor data and a known limit for failure.
For instance, let's say I... |
So I have got a set of data, which consists of the abundance of each butterfly species in each sampling point, and the temperature of their respective sampling point. Can I first do a Spearman correlation to test the effect of temperature on the overall abundance of butterflies then repeat it again with each species to... |
I was modelling a linear regression (OLS) and tried using scaling techniques on the predictor variables. I could see the range of the variables change, however the prediction results remain the same. I would like to learn why scaling does not affect the prediction output but the coefficients. In addition the accuracy a... |
I already asked this question in the "Mathematics" stackexchange, but apparently did not find the right audience, so I am duplicating my question here, hoping someone might be of help.
My question is: what is the relationship between the Cramér-Rao Lower Bounds (CRLB) and the uncertainty propagation formula?
I would ha... |
In Christopher Bishop's PRML book,in section 1.4, the author explains how intuition fails in higher dimensions. He does this by using a gaussian distribution in higher dimensions. He concludes the following-
If we transform from Cartesian to polar coordinates, and then integrate out the directional variables, we obtai... |
I have 2 groups of participants A and B in an opinion survey. Participants A give an opinion on a group of "objects" X and participants give an opinion on a group of "objects" Y. Opinions are values on a scale 1 to 5. (I have all scores, but can not do additional surveys)
The mean values (opinion scores) for X and Y ar... |
I'm new to Survival Analysis. Usually in survival analysis, we want to model the survival function progress w.r.t time. This is normally done through Cox model, or KM-model within a specific time horizon
However, this assume that we know exactly when the hazard event occurred. If we want to model a system which we can ... |
We have a rather mathematical/statistical problem and hope to get some help.
We have data from a multicenter randomized clinical trial where we compare single with combined treatments at 4 different time points (baseline, interim visit, final visit, follow up).
We fitted a mixed effect model to predict the outcome by t... |
I'm looking at the association between two categorical variables in a genus of birds. The variables are 'Conservation Concern' (Yes/No) and another binary variable (Yes/No) and I have these for every species in the genus. I know there may be issues with the variables (i.e. have they been adequately described) but they ... |
I want to follow a similar approach to what was done in the paper of Bornkamp et al. in 2021 (DOI: 10.1002/pst.2104). More specifically they added a link to a R markdown file (https://oncoestimand.github.io/princ_strat_drug_dev/princ_strat_example.html) with a working example how to implement the principal stratum stra... |
I am studying the effect of employment on population growth using barroregressions. The dependent variable is thus the average log population growth in Norwegian regions between 1995 and 2013.
The controls are log population in 1995 (initial population to see if there were divergence in Norwegian regions in the period ... |
I am trying to assess the effects of an experimental treatment on the insect fauna of artificial ponds. The treatment is applied to the entire pond.
I was able to sample each pond four times, each sample collected from a different spatial location within the pond, but at the same moment in time. So I have replicated si... |
I am performing a Bayesian calibration of a computer model and wondering if I am setting up my likelihood correctly. I have model output generated using Monte Carlo sampling of prior distributions of model parameters. I then assign a score ("likelihood") to each simulation in my ensemble using model-observation misfit:... |
Instrumental variable regression is estimated with ivreg in R. ivreg provides diagnostics with the diagnostics option in summary. The first stage is similar to an OLS regression where the endogenous variable is regressed on all instruments and exogenous variables to check instrument relevance. The weak instrument test ... |
We have a dataset on cancer patients who have consented to join a study after their diagnosis, which could be months or even years later. After some follow-up, an event occurs. We can fit this data using the following code in R:
fit <- survfit(Surv(time, status) ~ group, data = data)
Here, the variable time represents... |
I am trying to build my first VAR model, consisting of three time series, for forecasting and have gotten quite far. I have made all the tests and comparing models indcluding different lags, different adjustments, inclusion of dummy variables, and different orders of differencing the variables. But I really do not know... |
I am trying to generate random parameters for the lognormal distribution in order to test parameter sensitivity and for simulating (predicting) future survival rates, using the lung dataset. I realize the optimal fit for lung is Weibull, but I am trying to get my arms around lognormal in a survival environment (I have ... |
Textbook literature often denotes the estimated weight matrix of a linear regression model $y = Wx + \epsilon, \epsilon \sim \mathcal{N}(0,\sigma^2)$ by $\hat W$ due to the inherent variability in the sample size. Limited access to all possible instances hinders our ability to find the true matrix $W$. Additionally, th... |
Problem Setting/Context:
I have feedback(each feedback has multiple sentences) associated with different products(you can safely assume that a feedback talks about one single product), I need to assign a continuous score for each feedback, for simplicity lets assume that this score can lie between 0 and 1(on a continuo... |
I am a masterstudent in behavioural sciences, currently writing my thesis. Unfortunately statistics isn't my biggest talent, so I was hoping someone out here could help me with an issue I am facing.
I have a dataset in SPSS with missing values for different variables. I ran a Missing Value Analysis using EM but SPSS co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.