instruction
stringlengths
9
38.7k
I have two small data sets. For each data set, I performed a Deming regression. Hence, I have, for each data set, the relationship between X and Y in the form of slope+intercept coefficients. Now, I want to know if the relationship between X and Y is the same for the two data sets. Meaning I want to compare the regress...
If you were to run a linear model with the lm function, it is easy to obtain the log liklihood of the fit with the following: lm1 <- lm(response ~ explanatory, weights=optional) logLik(lm1) However, how would one calculate the log likelihood of a model fit through matrix operations? As there seems to be no defined met...
I'm working on a structural equation model in Amos. I have two independent variables, 5 mediators and a left censored dependent variable. The dependent variable is either 0 or a positive amount in euros. My question is: is there a way in Amos to analyze such a model in which the dependent is non-linear? And if not, is ...
We have cross-sectional data for 4 countries. Both dependent and independent variables are categorical.(binary data, in 'yes/no' form). Our analysis focuses on comparison of independent variables in these 4 countries. Our sample size is 7000 for first part of analysis and 3000 for second. -Which models can we use apart...
I am currently working on analysis problem where I wish to assess the impact of overtime work on sickness levels in a company. I currently have the data stored by week for each employee over the last 2 years. My hypothesis is the following: Over time (additional work hours) increases the likelihood of sickness for each...
Consider a Bayesian linear regression model $$\mathbf{Y=X\beta} + \boldsymbol{\varepsilon}$$ where $\mathbf{Y} \in \mathbb{R}^n$ and $\mathbf{X} \in \mathbb{R}^{n,p}$ are given, $\boldsymbol{\varepsilon} \sim\mathcal{N}(0,\sigma^2 \mathbf{I})$ is a Gaussian noise term and $\mathbf{\beta} \in \mathbb{R}^p$ is a paramete...
I am studying a biomarker in cancer, and I want to know if there are differences related with the location of the cancer (head and neck, lung or cervix). When I do the Kruskall-Wallis test, I find a statistically significant p. Deeper, If I click on the model viewer of SPSS, I can see the comparison between pairs (head...
I have three questions regarding a regression equation where the dependent is log transformed, a dummy $D$ is interacted with yer dummies, and other independent variables are present on the right hand side: $\newcommand{\year}{{\rm year}}$ $${\rm ln}(Y) = \alpha + \beta_{0}.D + \beta_{1}.\year1990 + \beta_{2}.\year1995...
I'm studying SVM for classification. The first step of my work consists in making a data simulation in order to study the influence of the cost parameter C, the choice of the kernel, for examples. Do you have any advices in order to have a good study of those parameters ? Which laws to simulate? My point is to understa...
I'm a newbie studying probability. Let X be random variables distributed as Geometric Distribution: X ~ Geom(p) Let Y be random variables distributed as First Success Distribution: Y ~ FS(p) I know how to calculate the Geometric expectation: $$E(X) = \sum_{k=0}^{\infty}kq^kp = pq\sum_{k=0}^{\infty}kq^{k-1} = pq\frac{1}...
in traditional frequentist instrumental variable regression there are a variety of tests for weak instruments and for endogeneity (e.g. Wu-Hausman). What is the procedure when doing Bayesian IV regression to test for endogeneity?
After looking through several questions on stackexchange, and even applying many of the suggested methods I have come to a point where I would like to have an expert's advice if the methods applied on my dataset are correct. This is for my master-dissertation and up untill 1,5 months ago I never worked with R. I studie...
I have been taught that residuals should be randomly distributed relative to the predicted values of the DV so that there should be no pattern. Can anyone please tell me what this output means?
My question is somewhat related to this question I run k-fold inner cross validation (k = 7), and outer-validate the best found model on a hold-out sample m times (m = 99). At each m I use unique training/validation/hold-out data. I end up with 99 entries, which include inner-cv average of the minimized metric, model h...
I have recently come across an interesting means to appraise baseline differences in competing groups in clinical trials being pooled for meta-analysis: the Baseline Inequality Index. As far as I am aware, there are no other similarly applicable approaches to explore the impact of baseline differences in a meta-analys...
Can someone explain me what the relation is between bivariate normal distribution and dependence and independence of two variables? When i search for this topic i get answer in dependence and independence of two variables :(
I'am doing a two-way ANOVA and each factor has 3 levels (so 9 cells in total). My data has 60 to 200 observations per cell. The data is pretty normal but heteroscedastic (Levene's test 0.003). The ratio of biggest to smallest group variance is 1.7. The goal is to detect a difference in means of size about 10% of varian...
For an assignment, I have used iPython to create the dendrogram below, using Ward's method and Euclidean distance, from the following data: $$a=(0,0)$$ $$b=(1,2)$$ $$c=(3,4)$$ $$d=(4,1)$$ $$e=(2,2)$$ where dist({a},{b,e}) = 2.88, and dist({a,b,e},{c,d})=4.27. How are these values derived? I've tried using the recursiv...
I have a dataset of [tags, like_count]: TAGS: ["car", "travel", "adventure", "lifeontheroad", "photographer"] LIKES: 21 TAGS: ["coffee", "travelgram", "home"] LIKES: 10 TAGS: ["lanscape", "wild", "nature", "landscapephotography"] LIKES: 13 The dataset is quite big....
Learning the causal relationship from data in Bayesian Network literature is a mystery for me. Because most of the data in Bayesian network literature does not have the "time order" information. How could an algorithm know which cause which? For example, we have data about a income on thousands people. For each person,...
I am trying to figure out the details of LDA and have been stuck for a while now. While reading the paper by Blei, I came across this - Latent Dirichlet allocation (LDA) is a generative probabilistic model of a corpus. The basic idea is that documents are represented as random mixtures over latent topics, where each ...
During the development of a variational mean field algorithm I have found a distribution with the form: $q(x) \propto x e^{-ax^2 +bx}$ with $x\in(0,+\infty)$ Does such a distribution have a name? What is the normalizing factor? And the expected moments? I always can compute them, but I'm wondering if that's already don...
I wonder if you could help me understanding how to answer this exercise question: This is what I've managed to think of so far: Does it make sense? In question 3 in particular i didn't know what to say about significance. Thanks in advance! :)
I have a multiple regression model (in R) that looks as follows: The model attempts to find the relationship between TV advertising and Radio advertising (dollars) on sales. I'd like to also create an interaction variable between TV and Radio. I was reading the following article on how to do this, and the author state...
I would like to carry out variation partitioning to see how landscape variables and local variables contribute to variation in species richness. Do I need to centre my data prior to analysis? Furthermore, my local variables are largely dummy coded factors (0|1) how do I approach this?
If a random variable $X$ has an unknown cdf $F(X)$ and empirical cdf $\hat F(X)$, and $\hat F(X)$ uniformly converges to $F(X)$ via the Glivenko-Cantelli theorem, does $E[X]$ w.r.t. the empirical pdf $\hat f(X)$ also uniformly converge to $E[X]$ w.r.t. $f(X)$?
I have a time series including one hundred thousand observations. In order to make the structure more visible I tried to apply a Moving Average for smoothing. However there are two issues. First the time series is non-stationary due to a decreasing variance over time. Second the points in time are not equally spaced. ...
I am trying to use the K-Neighbouts for regression and I find to my surprise that not shuffling the training data has a huge effect on the quality of the prediction. With shuffling. 98% training data: Without shuffling the data (sequential data). 98% training data: I am using the Sklearn library in python, and the sh...
What is the difference between the probabilistic and non-probabilistic learning methods for different situations? When is one considered more appropriate than the other? Can you give me examples?
I recently came across a paper that mentions Choose a topic zn ∼ Multinomial(θ). From my understanding of the multinomial distribution parameterized by a probability vector θ, you get the probability of a particular distribution of events (ex: probability of selecting 4 Chinese citizens, 3 Indian and 5 American etc.). ...
I have a data frame as follows: pressure datetime 4.848374 2016-04-12 10:04:00 4.683901 2016-04-12 10:04:32 5.237860 2016-04-12 10:13:20 I would like to apply time series modeling to predict future pressure. However, is it possible to do just using one feature and how?
Generally speaking, are there any rules used to decide if it is better to use quartiles, quintiles, deciles or percentiles when approaching a dataset for the purpose of quantile regression calculation? I imagine that the larger the quantile division the highest the chance that probably the quantile regressions may get...
I know that tests like Ljung-Box and Breusch-Godfrey are often used to test the residuals of a fitted ARMA model for whiteness. But say I want to evaluate how well my model describes a new data set that is independent of the one used to fit the model. Is there any problem with just using the prediction errors from this...
This question was originally posted on quantstackexchange: https://quant.stackexchange.com/questions/31501/why-does-the-presence-of-cointegration-solve-the-problem-of-spurious-correlation Many of us are familiar with the connection between spurious correlation and its relationship to cointegration. Granger explains in ...
If I want to fit an ARMA on data whose white noise part is non-normal is it better to estimate the model with OLS or with MLE? In other words, is OLS or MLE better for non-normal white noise in time series?
I have a dataset which is annotated, used both for training and testing. And I have another dataset which is not annotated, used for production. Currently I call them AnnotatedDataset and UnannotatedDataset. I am looking for a better term for UnannotatedDataset (simply calling it Dataset is not the answer that I am loo...
I have a time series of the amount of apples sold in a specific Region. The time series include monthly values of 10 years (2006-2016). However two months are missing (February 2009 and July 2014). After imputing the data my foremost aim is a forecast for the upcoming months. The imputeTS package in R includes various...
Suppose, I have a regression equation. $$Volatility = \alpha \times Exp. Loss + \beta \times Exp. Loss^2$$ This equation is based on a pool of data including two types of segments (say high risk loans and low risk loans). After the regression analysis, I have $\alpha$ and $\beta$. Can I use these same $\alpha$ and $\be...
As the title says: is there a one-sample non-parametric test to test if a pre-specified quantile is greater than some given value?
I am confused because the answer model of a question where two independent samples are being used, is stating that the critical value = -2.462 while Table 3, the table of t-distribution with critical t-values is only showing plus (positive) values. I need to search for a degrees of freedom of 29, which gives me a value...
I repeatedly read that one cannot use an F-test to compare two models that are not nested. Usually I have to nested models $$ m: y=X\beta+Z\gamma+\epsilon \text{, and } m_r:y=X\beta+u $$ The test-statistic usually looks something like $$ F(y)=\frac{RSS_r-RSS}{RSS}\cdot\frac{L}{N-K-L} $$ where $rRSS$ and $RSS$ is the re...
When titles, books, and posts refer to probabilistic modeling, coupled with it I usually see the word "Bayesian" near by and all around. If we were to think of this as a ven diagram, are they the same circle? Is Bayesian modeling within probabilistic modeling? What's the compliment of the intersection of Bayesian and p...
I'm doing a retrospective analysis of some genetic data. Does there exist a closed formula for statistical power for AMOVA test? If not, could anyone advise how to compute statistical power for AMOVA test? Some additional info: AMOVA - Analysis of MOlecular VAriance. (Do not mistake it with ANOVA!) Data: 7 population...
I have the following optimization problem \begin{equation} \label{logdual} \begin{array}{ll@{}ll} \text{minimize}_{\pmb\alpha \in \mathbb{R}^n} & \theta(\pmb\alpha) &\\ \text{subject to} & \pmb\alpha > 0 &\\ \end{array} \end{equation} where $\theta(\pmb{\alpha}) = \frac{1}{2\lambda} \sum_{i,j} \alpha_i \alpha_j y_i y_j...
I ran a screening experiment for six numerical parameters to determine if they influence the response $Y$. However, one factor, $A$, is confusing me. I visualized its effect on $Y$ and got the following plot: However, when I plotted the effect of the parameter on $Z = \ln(1+Y)$, I got that its ifluence was quite diff...
I am doing a linguistics experiment in which participants judge the acceptability of sentences. I intend to analyze the data using a linear mixed-effects model with crossed random effects for subject and item, but I'm not sure how to decide what counts as an "item" in the relevant way. To give a simplified example, let...
I am running an lmer function in R as follows, and I notice that the condition variable in the output changes from "condition" to "conditionE". In the data, condition has two values, "E" and "C". Does anyone know why this is happening or how to explain this behavior? What does this mean for the result (Estimate, -0.414...
Given two samples $X$ and $Y$ where $X$ has $X_1,...,X_n$ independent r.v's with unknown distribution $F$ and $Y$ has $Y_1,...,Y_m$ independent r.v's with unknown distribution $G$, find the expected value and variance of $$R=\sum_{i=1}^{n+m}iA_i$$ (where $A_i$ is $1$ iff the $i$th smallest value of $X$ and $Y$ belongs...
I performed a hierarchical multiple regression to study the effect of different variables, above and beyond the apriori selected more important variables. The R script used to perform this regression is listed below. Data <- read.csv("~/Desktop/data.csv", header=T,quote="") Data$catVar.f <- factor(HMRdata$catVar) HRMod...
What are the traditional distributions for assigning probabilities to model parameters? For instance, assume that we have a binomial distribution: $$y \sim Bin(n,\theta)$$ Then we can distribute $\theta$ parameter with a Beta distribution and parameters $\alpha$ and $\beta$ equal to 1. $$\theta \sim Beta(1,1)$$ I cons...
I have this matrix: x <- c(2, 38, 196, 2) contingency <- matrix(x, nrow = 2, byrow = TRUE) print(contingency) [,1] [,2] [1,] 2 38 [2,] 196 2 And I've carried out this Fisher's Exact Test: fisher.test(contingency) which outputs this: Fisher's Exact Test for Count Data data: contingency p-value <...
I am trying to figure out how to get confidence intervals for odds ratios that were computed based on model fitted values from a logistic regression. Here's an example with the basic idea: #Load packages library(vcd) library(dplyr) data(Arthritis) #Create binary outcome for logistic regression Arthritis$Y <- ifelse(Ar...
I'm following a lecture that explains how to calculate item-item similarities using adjusted cosine distance (or Pearson correlation). I tried implementing this and have not gotten the same results. This reproduces my experiment: import pandas as pd df = pd.read_json("./movie-ratings.json") # This is how the lecture ...
I want to implement the image captioning example that https://keras.io/getting-started/sequential-model-guide/#examples has , for experimentation. Instead of using their mentioned convnet, I decided to use resnet50 that i found at https://github.com/fchollet/deep-learning-models . After some modifications , my code lo...
In contrast to an a priori approach with a testable hypothesis, what is it called when a study examines data in search of a possible relationship in a more exploratory and unfounded way? For example, if a researcher tries multiple combinations or variations of data (different lags, intervals, time periods, methods, and...
I have a dataframe in R with two columns, each row represents a ratio in a year. There're a total of 130 rows. It looks like this: When plotted out, it's like this: I am currently using the below code in R to model this time series: myts <- ts(df_130$sb_ab_ratio, start = min(df_130$yearID), en...
So I am asked to calculate this, but I can't find anything about it on the internet. This is the question asked: Find Sd (standard deviation of the differences) Listed below are ages of actresses and actors at the time that they won Oscars for categories of Best Actress and Best Actor. This is paired sample data. Actr...
I want to construct probability models with the following structure: $$\Bbb P(Y=1) = f(X_1,...,X_n)$$ where $Y \in \lbrace 0,1\rbrace$ and $\forall i, X_i \in \lbrace 0,1\rbrace$ My data doesn't have a particular distribution that I know of a priori. At the moment, my sample size is 30 observations. According to what I...
I'm not sure of the best way to ask this but I'll try: I'm using negative binomial models to explore habitat relationships with species abundance. I found 4 significant factors in my full model. I then wanted to investigate relationship between abundance and each factor individually- both statistically and by plotting ...
Is it better to split your dataset into train and test before vectorizing? Or is it better to do it in reverse and vectorize inputs then perform train test split? For example I'm trying to use some categorical inputs such as types of animals, should I vectorize them into one hot then split into train/test or split the ...
I'm using 10-fold cross-validation (CV) with $L1$-penalized Logistic Regression to estimate expected prediction error. Briefly, each sample is part of the prediction set for exactly one fold, and I use this prediction compared to the ground truth of that sample, over all samples, to estimate the AUC below. I think thi...
I'm trying to get an intuition as to why degrees of freedom is n - 1 when calculating sample covariance. This is what I found: 1) Start with 2n degrees of freedom from the bivariate data 2) Lose 2 degrees of freedom from calculating the means 3) Lose n-1 degrees of freedom from computing product derivations In step 3, ...
I'm just starting out with machine learning. The example I was shown during a mini course I took was the predicting of the sale price of a house given features like: size of house number of floors age of house number of rooms Given those features, it's trivial to train an algorithm to minimize some cost function, whi...
I am fitting a logistic regression model. After variable selection, I am not sure how to check if I need any quadratic term in my model. Is it the same as linear regression to check residual plot?
I have a small study I am running to test feasibility. I have three intervention arms and one control. I am curious if one of the interventions is >>> placebo. The three interventions are: 1) Intervention A, 2) Intervention B, 3) Intervention A+B I am wondering if to justify my sample size, I can run sample size calcul...
I'm interested in differences in tasks performed per hour worked across a dataset of 50,000 work records (each of a different length of time). Each work observation has 3 variables: hours - the number of hours worked (again, this is not a standard) tasks - the number of tasks performed experience - the cumulative numb...
I am really struggling to implement this fancy PCA augmentation method described in this paper, here is what I believe I must do (correct me if I am wrong): 1) Create a Matrix where the first column contains all the red pixel data, the 2n column all the green pixel data and the 3rd all the blue pixel data from all the ...
I use Random Forest for a predictive problem in which the goal is to maximize the F-measure. There are various techniques to compute variable importance in Random Forest but I'm wondering what might be wrong with this simple implementation: Let's say we have k attributes selected after feature selection. Now we train a...
I conducted a MANOVA with 3 dependents and 1 independent (with only 2 groups). The MANOVA test shows no significance. But the average value over the 3 dependents are very different for the two groups. I am wondering if this possible? I think normally, if MANOVA shows no significance, the average value of the 3 dependen...
I'm a bit confused as to what assumptions my data needs to satisfy in order to use Mood's median test. Some resources state that you need the samples to come from population distributions with the same shape, while some sources, including wikipedia and the comments to this question: What are the exact assumptions of Mo...
So, I used Pearson's R in one my scholarly research papers, but I'm not sure which of the many historical papers I should cite. What kind of source does the community typical cite? On Wikipedia there are for example 6 papers cited in the introduction.
I need to test whether response rate for Test B is larger than response Rate for Test A (i.e. AB Test). Null Hypothesis: is Response Rate (Test B) <> Response Rate (Test A). Alternative Hypothesis: Response Rate (Test B) > Response Rate (Test A). As far as I know a z-test for 2 proportions can be used for this. A c...
What areas of pure mathematics may give fruitful perspectives with which to develop more theory in the field of deep learning? (I'm asking about topics at the level of advanced undergraduate and introductory graduate courses.)
Consider the following multiple regression model: $$Y=X\beta+Z\delta+U.\tag{1}$$ Here $Y$ is a $n\times 1$ column vector; $X$ a $n\times (k+1)$ matrix; $\beta$ a $(k+1)\times 1$ column vector; $Z$ a $n\times l$ matrix; $\delta$ a $l\times 1$ column vector; and $U$, the error term, a $n\times1$ column vector. QUESTION...
I wonder if I am reasoning correctly here? I feel that I might be missing something important.
I have a dataset with 15 attributes, 6 are numerical and 9 are categorical. Among the categorical ones, some have about 3 levels, some about 10 levels and 2 of them about 500 levels. I'm training a model for binary classification. When I convert the categorical attributes to numerical ones (using the so-called dummy co...
In every example I've seen, there are just two variables in an ADL(p,q) (in relation to cointegration) where p and q are the numbers of lags included for each variable. What is the correct/standard notation for an Autoregressive Distributed Lag model (ADL) with three variables: $x_{1_t} =a* x_{1_t-1}+ b * x_{2_t} + c...
As a warm-up to writing my own elastic net solver, I'm trying to get a fast enough version of ordinary least squares implemented using coordinate descent. So if $b = Ax$, I want to find $x$ that minimizes $$ \left\Vert b - Ax \right\Vert^2 $$ If $A_j$ is the $j$th column of $A$ and $A_{-j}$ is $A$ without column $j$, a...
Can noise estimation in LTE be done using bandpass filter? As per my study in wireless systems to estimate noise power, if pilot sequence is known is done as |y(k)-p(k)h(k)|^2, where p(k) is pilot sequence, h(k) is channel and y(k) is received data at receiver. But I was going through the code used in my project for LT...
Information about the data For this study, I would like to statistically test how the total length of sparrows affects their survival. Consider here one of the characteristics of the sparrows recorded was total length, which is assumed to be normally distributed. Information regarding the data: In a group of 21 survi...
I'm looking for metrics of the degree of grouping/clustering of spatial data. I'm not looking to formally cluster the data i.e. classify points within groupings. But rather an index such as from 0 for a uniform distribution to 1 for a set of spatially coinciding points. All metrics I've seen so far either relate to di...
Please, check the following problem from the exam: Could you check the following logic: H$_{0}$: difference in the ratings = 0 H$_{a}$: difference in the ratings > 0, because human resources manager wants to determine an increase in the ratings Based on (2) I conclude that it is right-sided test and positive critical...
I am currently running into a problem with MCMC. I am using it to evaluate different amounts of clusters (n_clusters, in [2,300]) of a graph that is varying in time. I want to achieve a clustering where the aggregate data in time follows most closely a concave (a<0) quadratic function (a*t**2+b*t+c). So far, I am estim...
Abstract example. Let's say, I want to compare MLE (Maximum Likelihood Estimation) and LSE (Least Squares Estimation) performance on the small samples for simple linear regression. My idea: to generate two normally distributed variables x and y with very large number of observations. As far as I know, MLE and LSE are ...
My question is regarding the minimum sample size needed in a mixed effects approach for analyzing a main effect. Lets say that a sample is taken of n=8 subjects with k=10 measurements of a continuous variable on each subject. Additionally, each subject is measured at a different point in time (but only one point in ti...
I'm trying to use Ward's method to calculate linkage for hierarchical agglomerative clustering with the data points below: $$a=(0,0)$$ $$b=(1,2)$$ $$c=(3,4)$$ $$d=(4,1)$$ $$e=(2,2)$$ According to some software, after joining b and e, the distance between a and {b,e} is 2.88, but ...
EDITED TO POSE DIFFERENT QUESTIONS THAN DUPLICATE: this question poses the question: Can standardized coefficients become greater than |1|? If yes, what does that mean and should they be excluded from the model? If yes, why? The accepted answer can be summarized as: Standardized coefficients can be greater than ...
I have 100 doctors each who evaluated 60 patients and labeled them as having disease A which kills, or not having it. 40 of them are university doctors and 60 are community doctors. I have survival data on the patients and have generated 100 survival models (Cox) - on for each doctors binary diagnosis of "has A" versus...
Is it possible to use Multiple Adaptive Regression Splines for predicting a binary outcome?
I would like to conduct on analysis that analyzes whether personality traits predict job search activity and contract type. I have a panel data set of about 15 waves. I wanted to conduct a logistic regression or a random effects model, but while the models work (and the results make sense) I am unsure whether this is t...
I'm analyzing the relationship between women's BMI status (underweight, normal, overweight) and five predictors ( their wealth, their education, the region where they live, their score of dietary diversity and a variable indicating if they treat the water they drink using a good method). For interpretation purposes, I ...
We received the following two tables as a result of a logistic regression analysis with by Enter and backward LR methods. The two outputs, Block 0 and 1, are provided below. Despite attempts to explain it in various ways, we are puzzled as to why only such a small difference is observed between the null model and the ...
I'm not sure if this is the right place to ask this question, but I didn't know where to ask. Recently, I went to the IEEE 2016 International Conference on Big Data in Washington DC, but was surprised to find that there is also a different, IEEE International Conference on Data Mining (ICDM) in Barcelona. Is one more h...
Using the same lambda in lasso regression from glmnet package in R leads to different results. When I set a default number of lambdas to 100 my minimum lambda is 0.03196 and df=54. When I set it to 200, minimum lambda is the same but I get only 53 df. It's even more odd when lambda is chosen manually. When lambda is se...
I have a binary classification problem and am trying to find a way to optimize my machine learning algorithm using a performance metric based on the per-class error rate. If I'm not misinterpreting anything, frequently used measures such as sensitivity and specificity focus on one of the two columns in the confusion ma...
I would like to know how sample size estimation is affected when the categories are artificial rather than naturally occurring and clearly discrete. In my scenario I'm using a grid of a certain size (say 1 x 1m) to characterise land cover proportions. Let's say there are two possible categories of land cover A and B a...
This references to: Optimized implementations of the Random Forest algorithm in particular where it says "Random Jungle -- abandoned?" Background: I found there is a directed graph version of a random forest - it is otherwise the same as a random forest but the base/weak learner is an acyclic directed graph. (1) It...
I have been looking at variational inference, however I came across a problem I have a hard time to understand how to start with it. Let $$\mu_n \sim N(\mu', \sigma'^2) \\ \tau_k \sim N(\tau', \lambda'^2)$$ where $\mu', \sigma', \tau', \lambda'$ are given parameters. Now let $$X_n \sim N(\mu_n, \sigma_n^2) \\ Y_k \si...
Say I measure an outcome variable at two given times (always the same) for 100 people. For example their weights today and tomorrow, or before and after a treatment. In order to find if the outcome depends on time I could perform a paired t-test or use a lineal regression model with random effects such as: $Y = a+b·t+(...
I would like to use the cv.glmnet() function, in a microarray dataset to perform some kind of "feature selection/variable importance" and prioritize with this way, the selected features with the lasso approach (which coefficients are different than zero). My outcome is a categorical binary outcome (factor, 2 levels). M...