instruction stringlengths 9 38.7k |
|---|
I'm looking at two proofs for the policy gradient theorem. van heeswijk starts of with expressing the policy gradient as a gradient over expected reward trajectories:
and the rest is easy. However weng starts off with a gradient of the value function of a random state:
and the proof is much more involved, and require... |
Given $X \sim N\left(\mu, \sigma^2 \right)$, I want to find the distribution of
$$Y = \Phi \left( X \right),$$
with $\Phi \left(x\right) = \int_{-\infty}^{x} \frac{1}{ \sqrt{2\pi}} e^{-\frac{t^2}{2}}dt$, i.e., CDF of a Standard Normal Distribution.
More specifically, I want to get an expression for $SD \left[Y \right]... |
Accuracy stayed the same but F1 score went from 0.0 to 0.5, ROC-AUC from 0.0 to 0.7 (with non-linear activation the classifier predicted everything to be 0).
Isnt non-linear always more precise than linear, just more demanding computatinally? Linear separable classes can be separated just as well with a non-linear acti... |
I have asked listeners to rate some voices on 10 different questions. There were 2 groups of listeners. Group 1 had Set A of questions whereas Group 2 had Set B. Listeners responded on a Likert scale from 1-7, where each end of the scale was labelled (Strongly disagree 1, strongly agree 7). As such, I'm treating the re... |
By default Prophet will return uncertainty intervals for the forecast yhat.
Unfortunately, the documentation about those "uncertainty intervals" is extremely vague, and it doesn't help that statisticians have precise definitions of both confidence intervals and prediction intervals (there is a big difference!), but n... |
Participants completed a survey containing a pick, group and rank question. In detail, they were provided 16 items and asked to choose the ones that are relevant to them. Afterwards, they should rank these selected relevant items, i.e., most relevant item = rank 1, second relevant item = rank 2 etc.
I am looking for th... |
I'm trying to use cross validation to select which models are suitable, I'm following the R code here:
https://rpubs.com/rdelgado/405322
I have used this code:
library(caret)
folds <- createFolds(training_set$MH7A, k = 10)
# Regresion Logistica
cvRegresionLogistica <- lapply(folds, function(x){
training_fold <- t... |
I am new to time series regression. I am trying to understand the effect of differencing the time-dependent data before applying regression analysis.
I tried fitting lots of regression models but in all those cases the model assumptions are violated and show a high autocorrelation.
I was told that interpretation of the... |
In order to leverage a cox model for calculating adjusted survival curve - one must estimate the baseline hazard function.
To my understanding this has to be estimated (non parametrically) for observations where all categorical variables are set to their reference category and all continuous variables are set to 0.
Th... |
I have a question about how a split system should work.
I have a product. Which looks like eBay.
We conducted an experiment that should increase the number of users who choose one of the categories.
What's the point, I have a Default option that looks like the photo (Group A), B group (Icons made large), C group (Same ... |
In "A new coefficient of correlation" (Chatterjee, 2019), Chatterjee defined an asymptotically unbiased estimator for the following index, which is zero for independent random variables $X,Y$ and one if $Y$ is a deterministic function of $X$:
$$\xi(X,Y) = \frac{\int \mbox{Var}\left(E(1_{\\{Y\geq t\\}}|X)\right) d\mu(t)... |
I am analysing a dataset with the following characteristics:
We have three different groups. The difference between them lies in different levels of expression of a specific gene (no expression, medium expression, high expression). This could then be thought of as an ordinal variable.
The response variable is a purely... |
I have run an elastic net on a relatively small sample (n= 320) with 17 predictors and 5-fold cross-validation (no train-test sample because of the small sample size) and 100 bootstraps.
When I look at the predictions using the minimum lambda and alpha, I get a relatively full prediction table, with coefficients of var... |
I have a dataset with biomass, dbh, height, wood density, site, and species. As data were not normally distributed, I converted biomass, dbh and wd using the log() function. Then I developed a linear mixed model using the lmer() function in R Studio. I kept biomass as the response variable and the remaining other param... |
Both AUC and Average Precision (AP) are commonly used to evaluate the quality of a ranked list of relevant / irrelevant documents. When evaluating a search engine, we want to evaluate the quality over multiple queries, therefore we naturally define MAP, the mean AP over multiple queries. Similarly, why don't we define ... |
I would like to run a regression on some data I have on high school students and their choice of university they apply to. The data I have gives me characteristics on the students as well as on all the different university programms they could choose. What i want to do is run a regression to understand student's decisi... |
How is longitudinal forecasting usually done?
I know a bit about longitudinal (panel) data analyses, but I have not yet forecasted from longitudinal data.
I tend to think that building several time series forecasting models is a solution: since we have N subjects in longitudinal data, I think I need to build N forecast... |
Using the paraPen term and gamma to control how much penalisation, what is the correct structure of penalty matrix input for paraPen for an interaction to be penalised?
In the case of a numeric variable we would use:
paraPen = list("numeric_variable" = list(rank = 1, diag(1)))
In the case of a factor/character variable... |
I'm currently working with a dataset with a sample size of 174 from a questionnaire that measures 6 types of personality traits with 5 response options per item (Strongly Agree, Agree, Neutral, Disagree, Strongly Disagree)
I've generated a polychoric correlation matrix to inspect each item and I need some assistance wi... |
Suppose I have a probability measure $\eta$ on a measurable space $(\mathsf{X}, \mathcal{X})$ and I have an empirical approximation of it
$$
\eta^N(dx) = \frac{1}{N}\sum_{i=1}^N \delta_{X^{(i)}}(dx)
$$
for some particles $X^{(i)}$ that I have obtained through importance resampling with a proposal measure $\nu$.
Is the... |
I'm reading Using Weights in the Analysis of
Survey Data by David R. Johnson .
When we conduct a survey, people have different likelihood to respond. For example, suppose there are 50% males and 50% females in the population, and 40% young people and 60% old people.
Suppose females are more likely to respond than males... |
I fitted, using glmmTMB R package, a zero-inflated negative binomial GLMM, with offset and a random factor, to investigate which variables could explain animal species' range filling. The response variable (Range_filling) is expressed as cell counts, and to account for the total area available I have put its log as an ... |
Can I create dummy variables if my variables are ordinal categories?
this makes sense?
Furthermore, I want to study the correlation of the categorical variables, do I do it before or after transforming them to dummies?
|
Are accuracy, AUROC and related measures (sensitivity, specificity) that are commonly used to estimate the performance of a supervised machine learning model using cross-validation etc. collapsible metrics? What I mean by that is suppose we want to estimate the accuracy of an ML classifier for some population composed ... |
As I understand it, there are tricks to marginalize-out latent quantities in structural equation models, but I'm having trouble finding explanations of how this is achieved that aligns with both my minimal math background and typical use case. So I thought I'd post a couple examples here showing how I code things witho... |
I have done a DOE that I am in the process of analyze with a two-way ANOVA.
The DOE has been generated by the JMP software and I specified that I want calculate the main effects and the 2nd interactions between factors. I did not need to specify how the DOE is generated (using JMP standard settings).
Edit Factors are s... |
I ran an EIV model in r and I was wondering if there is something else besides the R-adjusted to see if the fit of the model is good?
I noticed that eivreg function of the eivtools package does not provide a p-value for the model. It just provides it for the coefficients.
Sorry if the question is a bit dumb but I am ne... |
I have searched in many places, and can't find what the hyperparameter 'scale' means in SVM polynomial in caret (method = svmPoly)
Caould you tell me, please?
|
I'm analyzing the data from a questionnaire using ordinal scales with five response options (Strongly Agree to Strongly Disagree).
I'm conducting my analysis using R, and have recoded the item response options themselves. Would it be meaningful to inspect the mean/average inter-item correlation of the items?
I'm gettin... |
So I am familiar with the following:
$$P\left(X<x|Y=y\right) =\int_{-\infty}^{x}f\left(X=u|Y=y\right)du=\frac{1}{f\left(Y=y\right)}\cdot\int_{-\infty}^{x}f\left(X=u,Y=y\right)du$$
But during a lecture on copulas, I saw this:
$C_{U_2 \mid U_1}\left(u_2 \mid u_1\right)=\operatorname{Pr}\left(U_2 \leq u_2 \mid U_1=u_1\rig... |
So my situation is as follows: I have done a survey experiment asking respondents to hypothetically allocate 100 euros between 4 asset classes, of which one is crypto assets. I then repeat this another 3 times, except here the other assets are assigned an ESG value of 70, whereas crypto assets get assigned 50, 70, and ... |
I am hoping to compute intraclass correlations to evaluate interrater reliability (IRR) for interviews conduct with participants in a clinical psychology study. Specifically, we want to determine IRR for sums of symptom scores made in interviews with participants (e.g., for determining agreement for rating a total scor... |
This picture represents transactions. $T_1$ is the time of the first transaction, $T_2$ time of second, $T_x$ time of the $x$th transaction
$t$ is the observation period, $X(t)$ denotes the number of transactions in period $t$, $x$ is the number of transactions
Can someone help me understand the following relationship... |
I do time series forecasting (q-o-q GDP) using ml models.
For hyper-parameter tunning I use grid search with cross-validation. Cross-validation is specifically Time series split (using expanding window approach). After getting model with best hyper-parameter combination I retrain the model once again on the whole train... |
This is a multiclass classification task for a balanced dataset. I am using the Random Forest Classifier for classification, and I have calculated the evaluation metrics:
Training set metrics:
Accuracy: 1.0
Precision: 1.0
Recall: 1.0
F1-score: 1.0
Testing set metrics:
Accuracy: 0.9995151906916613
Precision: 0.999559121... |
I'm writing a paper in which I want to research to research the extent to which hedonic capacity affects affective and physical inflammatory sickness response to lipopolysaccharide (LPS). The following is hypothesized: individuals with higher hedonic capacity experience less reduction in positive affect during inflamma... |
We aim to examine the time it takes for a certain event to happen between two different groups of people in our sample. We are thinking of using survival analysis methods for this purpose.
The thing I am unsure about, for certain people in our sample, the event never occurs (and will never occur). The non-occurrence of... |
If I have a Poisson-Binomial random variable $X$ built from $n$ trials where I draw each $p_i$ as either $a \in \left[0, 1 \right]$ or $b \in \left[0, 1 \right]$ with equal probability. How can I find the mean and variance of $X$ in terms of $a$ and $b$? Are there any general techniques I could use?
This question seems... |
I'm trying to find out if there's a significant difference between relative abundance (response variable: rel.abund) and habitat (predictor variable with levels lagoon, bank, shelf: Habitat).
This is my data set
pr_uneq_smme <- structure(list(run_number = c(1L, 2L, 3L, 4L, 5L, 6L, 7L, 8L,
9L, 10L, 11L, 12L, 13L, 14L, ... |
I ran 4 chains with NUTS and made a forest plot, but I cannot show the plot here. In words, what I am seeing is the there is a lot of variability in the effective sample size (ESS) in the chains. Across the 30ish parameters it almost looks like the ESS is uniform. One chain might have less than 100 ESS while another ha... |
I'm admittedly not a math expert. I'm in the process of reverse engineering a piece of software and am stuck on finding a curve. The curve is used to convert a value (0-1) into a real world value. The docs label the curve as an exponential curve, but interestingly the steepness of the curve is dictated by specifying th... |
I am trying to use a Kalman filter, but my data are somewhat deviating from the assumptions.
The noises in my measurement equation are not normally distributed. First of all, they are not zero-mean. Secondly, although the second-moment seems okay but there are some outliers. How do I address this? I understand that da... |
I’ve been trying to fit some data for a manuscript to a model for the past two days and I keep running into problems with violation of assumptions for the lm and glm functions in R and it’s driving me crazy.
The dependent variable is continuous so I thought I could plot the data in a linear model in R (function lm()) w... |
In LightGBM model from scikitLearn Python library, how precision (True Positives / (True Positives + False Positives)) can be optimized?
|
I am struggling to find the right family to use in a hierarchal general linear regression. My dependent variables (y) have shapes that may be a bit similar to poisson or gamma families, and the data are non-integer numbers.
Regarding that, I have two questions:
should I choose the family based only on the distribution... |
Please help with explanations.
I tried with Pr(U=U) = 1-Pr(U<u) and similarly for V but i am getting the wrong answer.
The entity X is a discrete random variable with the following distribution
X: 0 1 2 3
Pr: 0.4 0.3 0.3 0.1
Let X1,X2,..,Xn be n independent copies of X. let U = min{Xi} and V=... |
I have performed a Kruskal-Wallis test to assess the difference in disease severity (recorded on a scale of 0-10) among different months. Here's the code I used:
kruskal.test(mean_severity~month, data= dat)
Kruskal-Wallis rank sum test
data: mean_severity by month
Kruskal-Wallis chi-squared = 20.172, df = 7, p-value... |
I am looking for a way to simulate ground-truth conditional entropy. Say I have $\mathbf{X}$ is a 3-dimensional multivariate Gaussian random variable. I am interested in computing the ground-truth of conditional entropy $H(X_1 | X_2, X_3)$.
I know that there is an analytical solution for the entropy $H(X)$, which is a... |
I fit three models using LightGBM with quantile objective (which uses pinball loss) using alpha values 0.10, 0.50, and 0.90. The following code is used to wrap the three models into a single class. For now, I trained the models using the default LightGBM hyperparameters.
class LightGBMQuantileTransformer(BaseEstimator,... |
Given some i.i.d. random variables $x_1,\ldots,x_n\in\mathbb R^d$, an M-estimator $\hat\theta_n\in\mathbb R^p$ is a parameter which minimizes
$$\hat\theta_n=\arg\min_{\theta\in\Theta} \sum_{i=1}^n\rho_n(x_i,\theta)\tag1$$
Where $\Theta\subseteq\mathbb R^p $ is the parameter space and $\rho_n:\mathbb R^d\times\Theta\to\... |
I encountered a strange issue when performing Mahalanobis distance matching. Let's say I have one treated unit with the following values on two variables: $T:(17, 4)$. I have two control units with values $A:(16, 3)$ and $B:(15, 3)$. Intuitively, it seems like $T$ should be closer to $A$ than to $B$, and that would be ... |
Days 1 to 100 are along the x-axis. The y-axis has the PDF values such that the area under the graph is 1. (x,y) is known for each point. The points line up in a near perfect lognormal distribution by inspection. Days or x can be extended to 200 or more if necessary. What is the equation for this graph? More importa... |
Please help me with calculating the minimum sample size of random coefficients for a negative binomial regression. I am wondering if a group receiving an intervention will have a significant difference or lessen the use of seclusion towards a patient in a mental health unit, compared to that of a group without the inte... |
For any probability distribution function (PDF), $p(x)$, which has finite moments $\left<X^k\right>$ defined upto $k=N$, is it possible to say something about the heavyness of the tails by considering the ratio of the moments $\left<X^m\right>/\left<X^n\right>$ where $(n<m\le N)$?
Further, can we also quantify this and... |
I am trying to optimize a set of variables for a process. To this end, I have conducted a Box Behken design to optimize 3 variables with the R package 'rsm'.
First, I tried the fit of a first-order model where the lack of fit was significant. Then, I fit a second-order model. In this case, the second-order model was si... |
I have used STATA to conduct an ITSA but am having trouble writing the equation for it.
Period A: 2005-2010
Intervention 1
Period B: 2011-2015
Intervention 2
Period C: 2016-2020
I understand the following equation when conducting ITSA for a single intervention with a control series: Yt=β0+β1T+β2Xt+β3TXt+β4Z+β5ZT+β6ZXt+... |
Simple question to understand if by nature monthly sales from a retail shop on the high street are likely to have a unit-root in its timeseries or not?
|
In Bayesian learning, priors play an important role. As per my understanding, most of the priors are statistical, and they used mean and variance value as prior. Then deep learning model uses the dataset and creates posterior distribution.
Is it possible to use symbolic knowledge, such as the first-order logic (FOL) ru... |
I have a c. 100,000 independent time series (they are not multivariate time series) of monthly retail sales of high street sales shops. They are independent because:
Shops are in different locations.
The time series run over different time periods in different years.
To find a common model that best fits them all (as... |
I am running my ever first multi-level model. The model has three fixed effects and a random intercept by the grouping factor "participant id".
The outcome variable is "bone mineral density". The three fixed effect predictors are "lean body mass", "fat mass", and "age". Lean mass, fat mass and bone mineral density were... |
I performed an ANOVA on some test results of N groups (N = 7), which yielded a significant difference of the group means, followed by a wilcoxon signed-rank test to determine which groups are significantly different from each other.
However, I did not perform the wilcoxon signed-rank test for all possible pairs as this... |
I have a series of predictors and want to see how each of them predicts a binary dependent variable that takes on the values of 1/0 (i.e., yes/no). I am running a series of linear probability models, each with a different predictor and the same covariates (DV ~ predictor + age + gender). This is all done in the same sa... |
I am trying to understand the gamma mixture models, especially the significance of the 'loc' parameter in scipy.stats. In the code below, I generate a mixture distribution with two gamma distributions with different shape and scale parameters.
import scipy.stats as st
import numpy as np
import matplotlib.pyplot as plt
... |
I need some help to estimate the probability of bankruptcy, using the lags of several explanatory variables. I want to use historical data and estimate the parameters using a logit/probit model, and then use them to calculate the probability of bankruptcy of the active firms. I have more than 50 explanatory variables, ... |
I'm struggling with this question:
You are given 2 random standard normal variables with correlation = 0,2
What is the probability that both are negative?
The answer is 0,29 but I have no idea how to get it, except for high-level estimate 0,5*0,5=0,25 and (taking positive correlation) suppose that it is higher then 0,2... |
What is the correlation between a uniformly distributed random variable $x$ and $y \sim |N(0, x)|$?
Or what Pearson do I get for the following algorithm when $n \to \infty$?
import numpy as np
from matplotlib import pyplot as plt
from scipy.stats import pearsonr
n= 10000
std = np.random.uniform(low=0.0001, high=10.0, ... |
I am reading "Introduction to Econophysics" by Stanley and Mantegna and I found the following in Chapter 13.
I can't understand why the 2-Norm of a vector standardized by subtracting the mean and dividing by the SD should be 1.
To me, it should be $\sqrt{n}$ where $n$ is the dimension of the vector.
Let $v$ be a vecto... |
I would like to know how to do calibration plot with Hosmer-lemeshow test and AUC for ROC curve after multiple imputation in R. I build one prediction model and tried to do model performance but noticed that it is not simple.
I also tried pool_performance function in psfmi package, but showed the following error.
Error... |
Suppose that one has a binary treatment $Z$, and assume that $Z=1|X=x \sim Bern\left(e(x)\right)$.
Furthermore, suppose I want to estimate the propensity score by a random forest. Are there consistency and asymptotic results in this case and if so, what are the regularity conditions that are needed to achieve them?
|
I'm pretty new to Bayesian statistics so hopefully this makes sense:
I'm fitting a Bayesian ridge regression using scikit-learn whose target values lie between 0 and 1. When the point values (the mean of the predicted distribution) are compared to the observed (gold) point values, MAPE, WAPE, and r^2 look good. But w... |
My apologies if this is a trivial question. I need some help to estimate the probability of bankruptcy, using the lags of several explanatory variables. I want to use historical data and estimate the parameters using a logit/probit model, and then use them to calculate the probability of bankruptcy of the active firms.... |
This picture is from Group Normalization paper and the Layer Norm shows averaging in Channel and H/W dimension.
However, this picture is from Power Normalization paper focusing on NLP problems and the Layer Norm does not average the Sequence Length dimension. It is conventional in NLP field that Layer Norm is averagi... |
I have a data frame made up of categorical and ordinal variables, I want to make a multiple binary logistic regression model.
The steps that I am going to carry out are:
See if the variables meet the multicollinearity condition: on the one hand I see the correlation between the ordinal variables with the Spearman corre... |
I have data with seven variables and I want to calculate pairwise correlation (also the significance level of each correlation). The data I have is the effect size of a treatment on these seven variables. -ve value shows inhibiting effects and +ve value promoting effects. The higher or lower the value is the higher or ... |
I have to check if the following models are linear and if so setup the design matrix. In case they are not linear I have to find a transformation $h: \mathbb{R}^n \rightarrow \mathbb{R}^n$ such that $h(Y)$ is linear and then set up the design matrix.
Let $\epsilon_1,..,\epsilon_n$ ~ $\mathcal{N}(0,\sigma^2), n>3$ i.i.d... |
How can one adapt cluster::clusGap to work with an alternative distance measure such as Gower's distances? Does the output generalise to every clustering algorithm, or should virtually the clustering algorithm also be a hyperparameter?
|
I was revisiting some basic concepts on graphical models and factorization of distributions and noticed that all the examples I see only have factors that include, at most, one conditioned random variable (i.e. P(A | B, C, D)). Is there are reason that I shouldn't (or can't) decompose P(A, B, C, D) to include a factor ... |
I am facing an issue with a GAMM that I am attempting to fit.
I am modeling fish catch in response to several variables (see model below). I am using the mgcv's gamm() function to do so.
mod <- gamm(log_catch ~ gear_type +
s(effort, k = 65) +
s(doy, bs = 'cc', k = 20) +
s(yea... |
We have four sites, within each site we tagged 40 mangrove individuals and measured their height every 3 months for 2 years. We have three mangrove species present within each site but it is mainly dominated by one species, we tried tagging and measuring a mix of species but we ended up with 118 tagged individuals of s... |
In chapter 2 of Tsiatis (2006), the following is stated
After some straightforward algebra, we can express the estimator $\hat{\sigma}_n^2$ minus the estimand as $$(\hat{\sigma}_n^2 - \sigma_0^2) = n^{-1} \sum_{i=1}^n \{(Z_i - \mu_0)^2 - \sigma_0^2\} + (\hat{\mu}_n - \mu_0)^2$$
where $\hat{\mu}_n = n^{-1} \sum_{i=1}... |
I am working with this example. I have a set of multinomial data with $N$ rows and $D+1$ categories drawn from buckets of different size, $M_n$: $$ \mathbf{p}_{D+1}~\sim~\text{Dirichlet}(\mathbf{a}_{D+1})\\ \mathbf{y}_{n}~\sim~\text{Multinomial}(M_n,~\mathbf{p}_{D+1})$$
I wish to learn the relative frequencies of the f... |
I have a dataset in which a (latent) construct (e.g., math performance) is measured at different time points using different psychological tests.
The first data point is comparable to an assessment center. In my setup, there are four groups of participants, each one taking a different assessment center.
The following m... |
I am looking to write a program that generates samples from a gaussian distribution with a certain mean and standard deviation. I am not allowed to use any library except a random number generator. Is there a trivial way that one could do that? I am familiar with techniques like rejection sampling or a mcmc approach bu... |
I am currently trying to fit milk production data collected for three years by using generalized additive mixed model through mgcv package. The problem is, I am getting NaN p values in some variables. However, when fitting the same data using R-INLA I do get results for all variables.
Is there any thing I can do so tha... |
I have a random variable which is an angle $\Theta$ that follows a wrapped Normal distribution. The angle $\Theta$ has a relatively small variance, so despite having a range from $(-\pi,\pi)$, practically all the PDF is contained within the range $(-\pi/2,\pi/2)$. (Sorry, I don't know how to word it better). What I wan... |
I am conducting a survival analysis to examine the impact of a set of covariates X on the time-to-event Y. However, I have collected data on participants even after the event has occurred, where the event does not necessarily indicate death. I am unsure whether there is any valuable information in the observations obta... |
I'm newer to statistics and unsure how to analyze my data for a cohort study (n=73) where KAP assessments were administered to the same pregnant women before and after an educational intervention for gestational toxoplasmosis. The attitude/practices sections were scored on a Likert scale of 1-5 --> "never, almost never... |
Let's say we have a database of 160 participants, but only 60 participants are selected for the next phase of the study. Let's say that all participants (N = 160) filled in the test (eg. a depression score). Now we want to compare the results of the depression test between the selected groups of interest (say, students... |
Let's assume a three-variable regression model.
$$
\large
Y_i = \beta_1 + \beta_2X_{2i} + \beta_3X_{3i} + u_i
$$
Can you derive the formula of covariance given below?
$$
\large
var(\hat{\beta_3}) = \frac{\sigma^2}{\Sigma{x^2_{3i}(1-r^2_{23})}}
$$
$$
\large
se(\hat{\beta_3}) = +\sqrt{var(\hat{\beta_3)}}
$$
$$
\large
cov... |
I'm analysing a dataset that gave some very poor regression models in the past (not trained by me). Basically, I'm trying to get insights on why those models were so bad.
The target variable is the log of raw measurements and its distribution looks like this.
I noticed that if we look at specific ranges, for a good ch... |
Like the title suggests I'm having difficulty deciding the next steps I should take in terms of my current project. At the moment I have about 4 years worth of daily sales data dealing with "Christmas" items.
Obviously there is a very strong seasonal component to my data, and have used several different methods of tryi... |
I have a relatively small dataset with less than 100 samples, with one predictor and one outcome variable, both numerical. I generated models using lm and glm functions.
For linear and polynomial (2 degree) models, the $R^2$ value seems to be high already (close to $0.95$). When I try higher degrees, the $R^2$ keeps in... |
I am trying to calculate the 'absolute risk difference' and 'needed to treat' (NNT). NNT is 1/(absolute risk difference) where the absolute risk difference is just the rate of an event in one intervention minus the rate of an event in another intervention.
I have the rates of the events in two interventions calculated ... |
I am comparing two sets of samples that are of different sizes (n) and are from two different populations. Both sets have undergone a similar intervention at different time periods (one from August to December and the other from January to April). Although both sets have treatment groups, this is not the typical one co... |
I am trying to incorporate several non-linear continuous variables into a logistic model, thus, restricted cubic splines(RCS) is used into the model. However, I don't know how to get the odds ratios and the 95% confidence intervals of these continuous variables transformed by RCS. Some paper reported their establishe... |
For Archimedean copula such as Clayton and Gumbel, their positive dependence can be measured by Kendall's $\tau$ that $\tau_\textrm{Clayton} = \frac{\theta}{\theta + 2}, \tau_\textrm{Gumbel} = 1-\frac1{\theta}$. And Their tail dependence is $\lambda_L = 2^{-\frac1{\theta}}, \lambda_U = 2-2^{-\frac1{\theta}}$. From an i... |
I want to use an unpaired two-sample t-test of random samples of $n=40$ each. The sample data is from 4-point Likert scale assessments. I understand the t-test is not very robust to outliers, which I expect to exist within the population being sampled (true outliers, not artifacts or mistakes). I am concerned that the ... |
I have a simple repeated measures mixed-level model with random intercept by participant. I am trying to understand the resulting $R^2$ and ICC values. I have read numerous discussions on here, but none seemed to address my puzzle directly.
I have written out what I think are correct interpretations up to the final ste... |
In prediction, accepting a little more bias in exchange for a lot less variance is the very name of the game - we'll chose the model with minimal test MSE without regard for its composition (bias squared versus variance). In causal inference, we rarely - if ever - are willing to make this tradeoff. The emphasis/weight ... |
For example, I have a data frame consisting of columns ID, Genotype, Sex, time (days), event (deaths), for a number of Drosophila strains of both sexes, where deaths can be anywhere from 0 to 2, 3, etc. Apologies as this is probably a very simple solution, but most tutorials about survival analysis don't answer it and ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.