instruction
stringlengths
9
38.7k
Which is the best test for testing correlation between a 5 Likert scale (50 questions neuroticism scale) and one 4 Likert scale (16 question burnout scale) ?
I am performing an Accelerated Failure Time (AFT) regression data on a panel setting (multiple records per observation with time-dependent variables) using the eha package in R. The dataset is relatively large (162,541 records, 15,537 observations) However, the estimation takes too long compare to STATA. Are there any ...
I have an experimental design that looks like this: Animals were reared from nine different source families and were placed in groups of 20 individuals into 18 rearing boxes (two boxes for each source family, assigned to two different treatment groups). From each of these 18 boxes I sampled one animal every three days,...
I am currently wondering which estimator for the survival function is used for coxph objects from the survival package. It is clear, that $\hat{S}(t|x) = \hat{S}_0(t)^{\text{exp}(\hat{\beta}^Tx)}$, but what does the package use for $\hat{S}_0(t)$? Is it $\hat{S}_0(t) = \text{exp}(-\sum_{t_i \leq T} \frac{1}{\sum_{j\in ...
I am performing a correlation analysis between LST values captured from Landsat 8, and combinations of MODIS Terra and Aqua observations. I am also comparing the MODIS datasets with LST values observed from 11 ground weather stations. I calculated the daily mean LST over an ROI for both sets of data (after preprocessin...
When interaction terms are used in multiple regression analysis, often centralization of the variables (subtracting the mean of the variable from each variable) is used to deal with multicollinearity, Can this method (centering) also be used in logistic regression analysis and ordinal logistic regression analysis?
In section 3.6 of Jim Albert's 2009 book "Bayesian Computation with R" he describes a test of whether a coin is fair using a mixture of priors. The coin tossing follows a binomial distribution so the likelihood is $\binom{n}{y}p^y(1-p)^{n-y}$. The prior is given as mixture: $$g(p) = 0.5\ I(p=0.5) + 0.5\ I(p \ne 0.5) \...
I'm new to working with panel data in general. While I work with R my coauthors work with Stata. So naturally, I'm running into problems that they can't relate to but I also can't fully explain them my problem due to a limited understanding of panel data econometrics. I tried to solve the issue below by consulting: htt...
I am performing a correlation analysis between: MODIS Terra and Aqua Satellites LST Data Landsat 8 LST Data Weather Stations LST data. There are 11 combinations of mean MODS Terra and Aqua LST observations reduced over an ROI (E.g. Terra Day -Terra Night, Terra Day-Aqua Night, TerraDay-TerraNight-AquaDay, and so on). I...
8 plots (quadrants 3 x 3 meters), 4 invaded with an alien plant, 4 without the alien plant. I have measured the soil cover (as %) of the species found in these 8 plots. If I make a PCA with log (n+1) transformed values, the resulting PCA has low eigenvalues of the first two PC (corresponding to 34% and 28% of varian...
I'm working with data from a pre-post study examining colony-forming unit (CFU) counts before and after the application of a disinfectant. My primary goal is to model whether there's a negative trend in the CFU count from the pre-treatment phase (denoted $t_0$) to the post-treatment phase (denoted $t_1$). I'm trying to...
Let $\mathbf{X}$ be Binomial point process in $W = [0, 6] \times [0, 4]$ with $n$ points. Let $A_1 = [0, 2] \times [0, 4]$, $A_2 = [0, 6] \times [0, 2]$, and $A_3 = [2, 6] × [2, 4]$. I want to find $E[N_{\mathbf{X}}(A_1) N_{\mathbf{X}}(A_2)]$, where $N_{\mathbf{X}}(A_1)$ is the number of points from $\mathbf{X}$ in $A_...
Suppose I have a log-likelihood or quasi-log-likelihood for my data in terms of the parameter vectors $\theta$ and $\psi$: $$L(\theta;\psi)=\frac{1}{T}\sum_{t=1}^T{\log{f(y_t|\theta;\psi)}}.$$ (I am interested in both the log-likelihood case, and the quasi-log-likelihood case. Being a quasi-log-likelihood means that $f...
I have the following scenario I'm trying to model with mgcv::gam. I have a continuous explanatory variable X whose response depends on factor A. However, That X*A interaction may also depend on factor B for some, but possibly not all factor levels of A. X however is not expected to separately depend on only B. Without ...
I want to apply a Bonferroni correction on multiple KPSS tests for stationarity. I have $m$ tests, and so I want to see if the p-values are less than $0.01/m$. The problem is that the statistical packages (statsmodels.tsa.stattools.kpss in python and kpss.test in R) report p=0.01 if the test statistic is above the crit...
I'm trying to fit a regression model to predict the total expense of department with predictor variables being the headcount at different levels within the department. Level 1 to level 5 are the different hierarchy levels with 1 being the highest and 5 being the lowest. It is intuitive that the number of people in the ...
I'm currently exploring the use of difference-in-differences (DD) for my evaluation and have estimated my primary DD effects. I'm interested in understanding if there are differentiated effects between genders. My initial assumption is that I might need to employ a triple difference (DDD) approach to capture this. Coul...
I have a question regarding the sample size calculation if I want to compare rates using Poisson regression. I want to compare the rate of book A to the rate of book B. The rate of book A is defined as "number of the bookstores that have the book A"/"number of the people need book A in that city" , and the rate of book...
Consider a simple dynamic panel model with a single lag: $$y_{it} = \alpha_i + x_{it}'\beta + \rho y_{i,t-1}+\epsilon_{it}$$ Now assuming that $x_{it}$ is most ordinary covariates, this can be estimated either using GMM (Arellano-Bond etc.) or using MLE (Moral-Benito, Allison, and Williams, see e.g. https://www3.nd.edu...
I am following a group of woman during the study period and performing the analysis using Cox model, comparing non-users against users of the investigated medicine. However, to remove the impact of pregnancy on the response (stroke), my plan is to censor both users and non-users during pregnancy, and restart their foll...
The dataset I'm working with contains categorical variables with several classes. To do its pre-processing I chose to use Target Encoder. With numerical variables I used MinMaxScaler. When training the linear regression model, the residuals I obtained do not follow a normal distribution and are not homoscedastic. I'm t...
Why does conditioning on O open up this second channel below?
I have a dataset on power plant generation, which can be found here. I use both a FE OLS and a Logit Model (no/some generation) library(fixest) ihs <- function(x) { y <- log(x + sqrt(x ^ 2 + 1)) return(y) } reg <- feols(ihs(daily_quantity) ~ drought_index : resource_psr_type_def + CDD + HDD + solar + wind + import...
What I have tried and done so far: I am running GLMs and GAMs on my positive, continuous response variable. I have determined that the Gamma distribution would fit my data best by plotting various QQ plots with EnvStats::qqPlot() function against possible known distributions (Gaussian, Lognorm, Weibull, Gamma). Then, I...
I have a within-subject repeated measures dataset where participants were asked to rate images (48 items) at 3 separate time points (t0,t1,t2). Their ratings at t0 is what is defined as baseline, as there is an intervention (A/B) taking place on a subset of images between t0 and t1, affecting t1 and t2. I have followin...
I am trying to analyze a dataset consisting of counts of amphibian egg masses (3 different species) in nine vernal pools over a four-year period (consecutive years, 2014 to 2017). During each count (one per year), data were also collected on pool area, pool depth, pH, and conductivity. Initially, I did a standard ANOVA...
I would like to combine the "gain" feature importance metric from multiple features since this is potentially more informative. In my example, I would like to compare the importance of both hands (i.e., combine two features) to the importance of the neck, nose, etc. How do I combine the gain feature importance metric a...
I'm working on training an XGBoost classification model on time series data. Currently, I have a lot of data and it is hard to fit it all in memory, so I am trying to better understand if more data leads to better performance for my model through plotting learning curves. However, i'm getting some very unusual results ...
I have geo spatial data with lat, lon of user activity. I have divided this data into geohashes with precision 6. For each geohash, how do I measure the distribution of points within them? How do we think of distributions in the context of geo-spatial datasets? I am interested in measuring whether the spatial-distribut...
I have a data set with counts that exhibit the sample property that $$\hat \sigma_x \approx \bar x$$ which is to say that the sample standard deviation (with Bessel's correction) appears to approximately equal the sample mean. Actually, I have multiple sets of data which exhibit this property, which is what motivated m...
I'm using Support Vector Machine(SVM) with image classification. Each SVM model results a linear model $$y = wx + b$$ Where $w$ and $b$ is the SVM parameters. If I have multiple SVM models, I will get a vector $Y$ and matrix $W$ and vector $B$ $$Y = Wx + B$$ In my current case, I have a activation function called sign ...
I use the badhealth data as an example, I'm modelling the number of visit (doctor) based on the health condition and the age as two features. Mean absolute error is used as the metric. I tried Poisson regression and Linear regression but both give me the same error. Also, the plot of the predicted number of visits is s...
I have an interesting (hopefully) data science problem and I want to post it here for discussion. Let's say we have a data set having ONE numerical column and FIVE categorical columns. For categorical columns, they have different number of unique levels. Below provides a sample. A: A1, A2, ..., A5 B: B1, B2, ..., B100 ...
I found the input of information entropy calculation in the entropy weight method is not probabilities. I can not understand why it works. In most entropy weight method introductions, the information entropy calculation is as follows Calculate the relative weight of each sample for each criterion: \begin{equation} p_{i...
Hi recently I want to implement the adaptive Metropolis algorithm. However I dont know how to deal with multidimensional parameters. The normal step of the adaptive MCMC is to update the covariance matrix of the parameters, which are usually scalar or vector. But what if I want to estimate the precision/covariance matr...
I want to know whether there is a time linear trend in a time series. What are some good approaches? One approach seems to test that the model belongs to ARMA(p,q) family however I am not sure if a test exists for this purpose. If necessary I am willing to specify p and q and I am open to other approaches.
I am trying to understand the reparameterization trick. I got some intuition while looking at this popular question, but I still feel largely confused. I am putting my understanding and doubts here and would appreciate the help of the community. Let's assume - $y = 10$ $\hat{y} = w_3*z + b$ $z \sim N(\mu, \sigma^2)$ $\...
Suppose I have 4 vectors, the first 2 vectors are of length 4 and the last 2 vectors are of length 400. all values in the vectors range from 0.5 to 0.6. The Euclidean distance between the last 2 vectors will be greater than the distance between the first 2 vectors. This is due to the much larger dimensionality of the l...
I am trying to do a meta-analysis to pool many ROC curves together and get an estimate of cumulative AUC using 2 different techniques as logistic regression(LR) and artificial intelligence (AI). I have 95% confidence interval (95%CI) for only some of the included studies. I found a formula to calculate the standard err...
I am interested in simulated values that follow a certain distributional shape and map them on to values of a certain range. Here is an example with the beta distribution. rbeta(1000, 2, 1) |> qunif(min = 10, max = 100) |> hist() Created on 2023-08-15 with reprex v2.0.2 I use the beta distribution to generate a...
The equation 12.3, in the book RL An Intro by Sutton & Barto, is shown below with its "diagramatic" explanation in figure 12.2: Once the episode has terminated at time T, what's the meaning of adding this constant value $\lambda^{T-t-1}G_t$? If they wanted to add this constant just to conserve the "Area = 1" property,...
I'm running a regression analysis and I'd like to know if log transforming a percentage value is ok. My y-values are already in percentages and my x-values in absolute numbers. But I'd like to know by how much % y changes with respect to 1% change in x. Is it okay that I log transform my y-values along with my x-values...
I want to externally validate and update a previously developed and published model (Model A) in my dataset. In the case of poor performance, I would like to develop a new model for the same outcome (Model B). Can I use the same dataset to validate model A and then develop model B? Are there any guidelines regarding th...
I am struggling to put my transformation of data into mathematical contexts. My goal is to define a mapping that transforms the original data into some awkwardly mixed data. In my simulation study, I have a data frame with two columns $(X,Z)$. $Z$ is binary and $X$ is possibly continuous or discrete. I divided the data...
I have the following scenario of Bayes updating with which I struggle quite a bit. Imagine we are interested in the probability that a given person has a disease $D$. We perform two different tests $T_1,T_2$ on a blood sample of this person. I'm interested in something like the probability that a person has the disease...
I am currently working on the analysis of measurement data and have the problem of obvious non-normal data. Since most methods I want to use require normality (especially statistical process control and process capability) I first tried to transform my data using a power transform, however this did not work. The data I...
I understand that the p-value is defined as the probability to obtain a "more extreme" value of $w$ if $H_0$ is true, i.e. $p=P(|W| > |w| \ |H_0 $is true$)$ and the "significance level" $\alpha$ is a threshold to decide if it is "admissible" that $w$ comes in null hypothesis setting, i.e. $p < \alpha \Rightarrow$ rejec...
My understanding is that the goal of using Gumbel softmax is to change an output that contains logits into a one-hot vector corresponding to the highest probability choice (based on those logits). However, to me it seems like there are many simpler ways to do this: Use (soft)argmax on the logits directly. This is the ...
Llama2 is pretrained with 2 trillion of tokens: $2\times10^9$, and its batch size is of $4\times 10^6$. We can calculate the number of steps (times we upgrade the parameters) per epoch as follows: $$\frac{\text{total tokens}}{\text{batch size}}= \frac{2\times10^9}{4\times 10^6}=500. $$ But in the paper we can find: "We...
I run online A/B tests and I guess I have some basic stats background, but I've encountered a situation where I don't feel confident about. We plan to track page load time in each experiment to make sure that our alternative variant doesn't cause a significant drop in the page load time. However, since this metric is a...
I am conducting a study on wildfires, and so I have made some measures on burned trees. I have 4 variables (level of damage at the base, level of damage on the bark, species and diameter of the tree). I have converted them into numerical values (categories from 1 to 3 depending on the severity of the burn, categories f...
I have a formula and I am not sure how the author of this paper got to that formula. Im working on an algorithm that can filter out ground points from a Point cloud. The author describes the following formula: the h_max is later replaced with => h_max(d) = 0.3d (d = distance between two points) Now what he writes is th...
In CausalImpact library in R, usually the pre period is considered as the period where the campaign was inactive and the post period is considered as the period after the intervention of the campaign. So the data for pre-period is considered as 0 and data for post period is considered as 1. Can we interchange this? Can...
I need to detect the outliers of this scatterplot, made with plotly. In particular, I want to select all points that fall outside a certain threshold. Apologies for the screenshot, it's just to give an idea. I have a dataframe df with Vol1, Vol2 and sd (that is the standard deviation calculated for Vol and Vol2, for e...
Many analysts attempt to fit a distribution for a random variable by a. estimating the parameters with maximum likelihood then b. assessing the quality of the fit to the distribution by inspecting a QQ plot. They then use the QQ plot to qualitatively assess whether they believe the distributional fit is good or not; in...
For a paper on social norms, I want to predict an individual attitude by an interaction of another individual attitude with attitudes that people within the same region (e.g., cluster) hold. In the dataset with which I would like to test this prediction, I have the three attitudes that I mentioned (Dependent Variable D...
I would like to estimate weights using the synthetic control method (SCM), in particular using the synthdid package provided by Arkhangelsky et al. (2021) for R. Since I would like to include time-varying covariates, I need to manually regress (say with OLS) the outcome variable on the covariates and then calculate the...
I am considering a Bayesian linear model for which the prior is not proper. The model is as usual $y = X \theta + w$ where $w \sim N(0, \sigma^2)$, and $\theta, \sigma^2$ are unknown. The distribution is a normal-inverse Gamma for parameters $\theta, \sigma^2$ (the normal part is improper). There are hyperparameters in...
Let $D$ denote sampling with $D=1$ indicating subject being sampled and $D=0$ otherwise. $W$ denotes intrinsic variable of subjects, $X$ denotes exposure of interest and $Y$ denotes the binary outcome. The DAG is drawn below, where $D=1$ subjects were selected only. I am following Cox's Case-Control Studies' Sec 1.3.2...
I have a model with several independent variables/metrics that each additionally has a corresponding unit, pre-defined upper/lower bounds and a desired value. Now I wish to compute some basic descriptive staitistics (mode, median, mean, range(abs(max-min)), IQR, stddev, relative stddev) for each variable indicating how...
I am fairly new to Transformers thus this schema confuses me a lot. I am familiar with "classic" "vanilla" encoder-decoder transformers. I have figured out that GPT-like models are based on decoder-only transformers, where basically everything is fed to the decoder which then consists of a sequence of "self-attention b...
Consider the following AR(1) process: $$ y_{t}=\phi_{1}y_{t-1}+\epsilon_{t} $$ I am asked to compute the autocovariance betweem $y_{t}$ and $y_{t-s}$. Write down the DGP for $y_{t-s}$ which is: $$ y_{t-s}=\phi_{1}y_{t-s-1}+\epsilon_{t-s} $$ Write down the covariance as: \begin{alignat*}{1} cov\left(y_{t},y_{t-s}\right)...
In frequentist hypothesis testing for AB tests, when we construct 95% confidence interval around the mean difference between version A and B, the mean is an unbiased estimate between A & B, and we are confident that the confidence interval we construct will capture the true mean 95% of the time if we repeat this method...
I'm estimating a regression utilizing power plant data and drought data. A lot of the generators contain (meaningful) 0 values. I utilize a IHS tranformation and my main regression residuals can be seen (for a single powerplant) on the top left. To check my results I am also running an analysis where I exclude the 0s, ...
I am comparing the assessments of cognitive domains in 2 conditions: either in a noisy environment or in a no noisy environment. The same people are in both conditions. My next step is to see if there is a significant difference on the cognitive domain between the 2 conditions with a paired sample t-test and my hypothe...
I have a dataframe in R where each row is an sf-formatted geospatial grid. For each grid, I have the number of venomous snakes and the number of non-venomous snakes seen in that area. I also have data on the diets of birds in each grid area. Specifically, I know how many non-venomous snakes birds ate, and how many veno...
This is a follow-up question on my earlier question Functional Regression in R: Functional Response Regressed on Scalar Covariate. I have a functional response $Y(t)$ (i.e., a stochastic process) which I regress on a set of scalar explanatory variables $X_1$ ($=1$, i.e., $X_1$ is a constant term), $X_2$, and $X_3$. The...
I have a panel dataset of a large N and T = 24. I want to estimate the effect of a treatment (in this case, taking on a certain type of credit product) on Y which is an individuals credit score. I would also like to understand the time varying nature of the treatment - for example, can I determine if there is a negativ...
It is known that the average of averages can yield an incorrect result as compared to the true average. The classroom example comes to mind: if the test results of class A is [50, 60, 100], class B is [20, 30] and class C is [40], what is the average test result of the whole school? The true average should yield $$\mu_...
I'm working on a beta-variational autoencoder using car images from the Vehicle Color Recognition Dataset. At this point, I'm just exploring different architectures and values for beta. (If you're interested, the notebook is here, but it is very much a work in progress, a bit sloppy at this point, and will certainly ...
Looking for references on which training error goes to 0. As an example, suppose that we have a linear model $y = X \beta_0 + \epsilon,$ where $\beta_0$ is bounded and each row of $X$ is generated according to a distribution of finite support (or perhaps some distribution with light tails). Suppose also that the noise ...
I am trying to compute the observed Fisher information matrix for a mixture model estimated by the EM algorithm. My original thought is to simply compute the second derivative of a mixture density. However, I found in the literature that the missing information principle is the standard methodology. I am wondering if i...
I'm working with a binomial GLM that I've fit in R using the glm() function. The percent of deviance explained is decent for my field (35%) and I don't think the residuals vs fitted plot looks too bad. But when I plot the simulated residuals using DHARMa, the plots show some clear patterns: I've read that patterns in...
I am unsure how to present the equation of a three way interaction linear model (without expanding all the interaction effects). Let me clarify: $y$ is a continuous outcome measured at time $i$ (for $i$ = 0,1,6,12 and 24 weeks). $time$ is considered a factor/categorical variable. $treatment$ denotes the group of exposu...
There is a string that has five potential letters (A,B,C,D,E). However, we have some constraints: Each unique ordering of the string is a different passcode. Letters can be used more than once or not at all. No letter can be adjacent to itself anywhere on the passcode (A - A - B - C - D is not valid) No letter can b...
Say I have a correlation matrix that measures how well certain components in a system track each other along some meaningful dimension, like condition state: So, for example, component 1 and component 2 have condition states that track 80% but component 1 and 3 are not related at all. I want to perform some inspection...
I'm curious if there are any algorithms that solve this type of problem: Suppose you have a camera that captures what a human would see, a GoPro for instance. But suppose I uploaded video from it to my computer, and I see that all of the pixels are scrambled, every pixel teleports to a uniformly random location. If a p...
I was given a question related to the quantile function using scipy.stats.norm.ppf, along with its solution - which I don't understand. I'm changing the question details, but citing the exact final wording: A painter's annual sales of paintings have a normal distribution of $N(30, 8)$. Next year, the painter wants to ...
I have a bunch of boxes containing texts from receipt OCR results, and I need to a way to align them properly. The attached photo shows part of a contrived receipt, but it illustrates the problem I need to solve. Because the receipt image is slanted, the Subtotal: box is more aligned with 25 instead of $23.00, so if I...
I’ve designed a GLM to predict user preference when presented with a choice between two buttons. However, there is some disagreement about how I’m providing collected user data to the model, and I wanted to get a third party opinion. Below is an explanation of my logic with a simplified model: Model: P ~ Button1Size + ...
I have a set of observations $y_i$ for a set of values of the independent variable $x_i$. $x_i$ takes values of angles, so it is a circular variable. Is there some method to perform cubic splines or some interpolation on the values of $y_i$, taking into account the circularity of $x_i$? Extra points if there exists a P...
I have a sample that is randomly drawn from a population, and want to test if the distribution for a categorical variable age (under 30, 30-64, and 65+) is significantly different from observed population age percentages. Is there a way to compare the percentage in each of those categories in the sample to the overall ...
Suppose I am using Nested CV to estimate the generalized error of a model and a set of hyperparameters. I have chosen two scoring metrics of interest: Brier Score and AUC, because I want to get an idea of how discriminative and calibrative my model is. Because my associated cost requires good calibration, I want to c...
Given a gamma distribution with unit scale and shape $\theta$, and given an arbitrary variate $x$, what is the derivative of the variate $x$ with respect to $\theta$? In other words, I would like to produce a stochastic function: $$ \begin{align} g: \mathcal R &\to \mathcal R \times \mathcal R \\ \theta &\mapsto \left(...
I am doing self study in statistical inference and am rather confused about how to approach generalized likelihood ratio test (GLRT) problems. I am trying the traditional approach by definition and running into a wall. Problem: Let $X = (X_1, \dots, X_n)$ be independent and identically distributed observations from th...
I'm not sure if I understood well how LSTM works. I know that the LSTM layers keep an internal state. But I'm not sure if this state is maintained between subsequent samples during the training process. That is, changing the ordering of training samples in the same batch would produce different outcomes in the training...
Consider the problem of estimating the heads probability $p$ of a coin by tossing it until the first heads outcome is observed. Say we get $k_1$ tosses, then $U_1 = \frac{1}{k_1}$ is an estimate for $p$. It can be shown that $E(U_1) > p,$ assuming $p < 1$ (eg by working the expression for the expectation, or via Jensen...
I was looking for literature which connects prediction intervals with the bias-variance trade-off. Obviously both concepts deal with describing a mean squared deviation: the bias variance tradeoff deals with $E_{Y,x,D}[(Y-\hat{Y}(x)_D)^2]=E_{x}[E_{Y,D}[(Y-\hat{Y}(x)_D)^2]]$, which takes the average over (potentially de...
I want to know if it is not only possible to handle left-truncation of data in a survival model, but to know/predict the hazard function (probability of event) before the start point, i.e. the point of truncation. I have species observations for many sampling sites (locations) and years. For each site-year combination ...
Given data $x_1, \dots, x_n \in\mathbb{R}^d$, I am looking for a nonlinear dimensionality reduction technique $f: \mathbb{R}^d \rightarrow \mathbb{R}^q$ that only uses a limited number of dimensions to represent the data in $\mathbb{R}^q$. In the linear setting, the natural candidate is sparse PCA, which limits the num...
Let's say I have Antarctic temperature data for 2020-2023, and based on this data I would like to forecast the temperature for the following years. Which machine learning method will allow me to predict years ahead? For what period forward could I generally forecast in order for the results to be satisfactory and pro...
I have a dataframe which is structured in a way, that it includes a different amount of observations (trip chains) for each person. A trip chain consists of all the trips an individual took from leaving his home up to returning to his home. The persons made different amounts of trip chains. Trip_Chain_ID Person_ID Am...
The dataset has ten variables, and I am trying to conduct a cluster analysis. The ten variables are coded yes, no, or unknown. And I converted the character values ('yes', 'no', 'unknown') to numeric values ('1', '0', '(blank)'). If the variable is coded in 'yes', 'no', or 'unknown', can I leave the 'unknown' value as...
I stumbled across this interview question which has many wrong answers posted. How can this question be answered? Assume the distribution of children per family is as given in the table below: # children 0 1 2 3 4 >=5 p 0.3 0.25 0.2 0.15 0.1 0 Consider a random girl in the population of children. What is th...
I am conducting a meta-analysis to compare the differences between Group A and Group B by measuring the pooled Hazard Ratios (HRs) for the median Progression-Free Survival (PFS) and Overall Survival (OS). While I have accurately calculated the pooled HRs using R, I also intend to present the pooled median values for PF...
I am running a group invariance test. The data consists of data from students from grades 5 and 6 for one school (School A) and only from grade 5 in another school (School B). I have already run group invariance tests for Grade 5(A) and Grade 5(B) and it holds for partial strong invariance. I have also run group invari...
I want to do one sample t.test with data x = c(1450,1480,1640,1610,1500,1600,1420,1530,1700,1550) to see whether μ=E(x) is significantly greater than 1600 under level α=0.01. Firstly, I do the normal test for x shapiro.test(x) #p-value = 0.9494 Then I have two hypotheses (candidate choices) (case1: right) H0: μ<=1600...
I face the problem of calculating the similarity between multiple time series. What I want to do is compare each one with the first one to quantify the degree of change. The challenge is that they are circulant and not aligned, similarity measures like euclidean distance dont really seem promising. I was thinking of dy...
I am at the start of a project that collects data from subjects every 3 months. The data I currently have is nearly all independent (one record per subject, see screengrab below) but we've just hit the first 3 months milestone and have collected data from a few previously-sampled subjects, and so have added a few repea...
I want to run a multiple regression in SPSS with 7 independent variables but 3 of them are showing high correlation coefficients in the correlation matrix. How do I diagnose multicollinearity?