instruction stringlengths 9 38.7k |
|---|
I want to do survival analysis with the Colon Cancer data in survival package:
library(survival)
Colon<-subset(colon,etype==2 & rx!='Obs')
fit<-survreg(Surv(time,status)~rx+age+sex,data=Colon, dist="weibull")
Now how can I predict conditional expected lifetime given time, rx, age and sex?
For example, if a 50 years ol... |
I am running an xtivreg, re and an xtoverid afterwards.
My understanding of the help file and what I found online is that xtoverid basically compares IV-RE with FE (augmented RE).
The test statistic I get is tiny and therefore p-value massive (0.8 to 0.9).
My plan was to first test for endogeneity and then afterwards ... |
I'm having some problems with this question, and was hoping someone here could help.
Let $X_1,\ldots,X_2$ be $n$ determinations of a physical constant
$\theta$. Consider the model
$X_i = \theta + e_i,$ $~~~~~~i = 1,...n$
and assume
$e_i = \alpha e_{i-1} + \beta e_{i-2} + \epsilon_i$, $~~~~i =
1,\ldots,n$, $~~~e_0... |
I need suggestions for how to calculate the $n$ required for 80% and 90% power for >30% change from baseline ($T_0$) at $T_1$ or $T_2$, drug vs. placebo, 2:1 ratio; 20% CV in test; factors: subject, treatment, time, and two Gaussian covariates: one of the covariates is the baseline measurement of the endpoint. Please l... |
Someone asked what was his probability to win in this situation?
This is an interesting problem and I'll be curious to know an efficient solution.
So far, I wanted also to generalize, with a simplification, we consider only:
pairs of blocks such as the one on top right, and model them with a binary variable which val... |
I was sure that these are the same things but I do not get the difference reading about mass probability function
Suppose that $X: S → A (A \subseteq R)$ is a discrete random variable
defined on a sample space S. Then the probability mass function $f_X: A → [0, 1]$ for X is defined as
$$f_X(x) = \Pr(X = x) = \Pr(\{s... |
I have been doing plenty of research into which test I should use on my Likert scale data and i am becoming more confused as there are so many people saying different things.
I am currently doing my dissertation on To what extent does music affect aggression whilst playing violent and nonviolent video games? I have use... |
My dataset contains both numerical and categorical features like education level, region etc (i use factor variable type for them). I think these variables are important for predicting the outcome of my experiment and training the final classifier. I was recently learning about Adaboost and I want to train boosting cla... |
I have a first-stage F value of 9 for a model with 1 instrument and 1 endogenous variables, the mechanical rule of thumb of 10 would say my instruments are weak. However, I am reading the 2005 paper by Stock and Yogo, who have tabulated the critical values and I don't understand the interpretation of the following in t... |
I'm doing some work with random forests in R using the randomForest package, and I've run into something that seems odd to me. Even when the data is completely random, the AUC is never less than 0.5. For example, when I run the following:
library(randomForest)
df.sanity <- data.frame(A=sample(1:100, 2000, replace=T), B... |
this has been vexing me for a while and I can't seem to solidify an answer beyond vague thoughts about Poisson distributions. I think this is a simple problem and I'm missing something obvious. Any thoughts appreciated, particularly with R snippets :)
Chris
Experiment: 2 replicate assays from each of 50 tissues. In th... |
I have been doing supervised learning and classification with multilayer perceptron for some time. But now I need to use unsupervised learning to infer the presence of a pattern and I would need some help. It is not a hard problem by itself and I can solve it by supervised learning (by showing "examples" of the possibl... |
I once heard the following statements about the "correlation" in the context of regression.
correlation only measures linear relationships
$\text{corr}(X,Y)=0$ does not mean the variables are not related!
My question is why can't correlation measure non-linear relationships?
Secondly, what does $\text{corr}(X,Y)=0$ t... |
Say I have two vectors:
Action.Taken = c(0,1,0,0,1,1,0,1,0)
Success = c(0,0,0,1,0,1,0,1,0)
The first tells me whether or not a specific action was taken in a trial and the second tells me whether or not that trial succeeded. How would I go analyzing these two vectors to answer the following question: Does taking actio... |
Suppose, that we have a categorical variable say color which can take one of three values: Red, Green and Yellow.
We can code then using dummy coding or effects coding. But, suppose, we were to code it as follows:
Red: 1
Green: 2
Yellow: 3
Leaving aside issues of estimation and interpretation, is there a name... |
I am trying to analyze my data using Multinomial Logistic Regression whereby my dependent variable is a clinical outcome (sick vs healthy) and 1 independent variables (Factors) are in several categories.
The problem I have is trying to figure out how I can set one of the category as a reference group in SPSS.
I have do... |
I am aware that sample size calculations for cluster RCTs must adjust for clustered data. I would like to understand better if such adjustment might be necessary for other study designs. For instance, I am working on a nested case-control study to identify clinical and socio-demographic factors associated with patient ... |
I am a non-statistician testing a randomising algorthm.
If I have a sample of size 100 (numbered balls) with replacement and that 50 such samples are independently drawn. To my understanding, the binomial distribution will describe very well the chance that any one particular numbered ball has not been selected in any ... |
I am working with a data set that is non-parametric and has 12 treatments. I performed the Kruskal-Wallis test and got a significant $p$-value, and now I would like to conduct a multiple comparisons procedure to see which of the treatments differ significantly. There is a lot of information regarding this topic, but I... |
As in the title, I have a correlation matrix available with cor() function:
corMatrix <- cor(mydata)
corMatrix is a 98 by 98 matrix storing positive and negative correlation values.
I want to assess which correlations values are significant among all the correlations. Permutation test has been suggested to do this.
... |
The question I'm asking is related to this question here and here. And I apologize for asking so many questions here, as I am thoroughly a stats novice and probably my MD thinking is clouding my ability to interpret my findings.
So, because of the input I've received and following some contemplation, I've decided to r... |
Why does SAS random and repeated both produce the same result?
Can someone explain this in detail?
For example:
proc mixed data=test;
class variable1 ..... variableN;
model outcome=variable1+...+variableN;
random intercept/ subject=cluster type=cs;
run;
proc mixed data=test;
class variable1 ..... variableN;
model out... |
Suppose I'm considering several independent variables for possible inclusion in an ARIMAX model I'm developing. Before fitting different variables, I'd like to screen out variables that exhibit reverse causality by using a Granger test (I'm using the granger.test function from the MSBVAR package in R, although, I belie... |
First of all, many thanks to those who have kindly answered my previous questions, I am learning a lot!
Suppose I have a model
y = x1 + x2 + x3
x1 is endogenous and has instrument Z1 that is relevant and exogenous conditional upon X2 and X3.
So
First Stage:
X1 = Z1 + X2 + X3
Reduced Form:
Y = Z1 + X2 + X3
Structural Eq... |
Generally, what are the units of the second derivative?
In this (very specific) example I have plotted height against gap probability, what should I put in place of the "?".
|
Suppose I have a large data set with lots of features(attributes). And I'm tasked to build some kind of scoring model to rank certain objects with all these features.
How do I go about doing this?
From my understanding so far, I like to think of this as a supervised learning problem. But the problem is there is NO labe... |
I will describe my question with an example:
A machine manufactures toys and places them on a conveyor belt. A toys expert overlooking the conveyor belt observes the toys. If a toy is faulty he can successfully detect it with probability $P_{d}$. It is possible to have more experts overlooking the process.
If I have on... |
Simple question: I have a dataset, in which all the multivariate x variables (x0, x1, x2, x3..) are continuous, and all the y variables are categorical (distributed (equally) between 1-20 categories). Can this type of data be processed via multiple linear regression?
example:
data = [2.3, 4.5, 0.7, 2.1], [2]
[3.... |
The log-like likelihood values that are computed when I do a regression (by for instance eviews), are they comparable for different estimation techniques, specifically OLS and Maximum Likelihood? My intuition is that they are comparable when ML is done with a normal distribution, because I think that then the likelihoo... |
I am solving a binary classification problem with 4 predictor variables. The variables didn't seem to be linearly separable. I have used Neural Networks and Kernel SVM which work and give desired accuracy , but in turn are too complex to interpret and have latency issues.
Are there any transformation like Box-Cox or po... |
I am learning PCA, and while this seems like an obvious question, I can't seem to understand some of the ideas behind which eigenvectors to use when performing orthogonal regression with PCA. My code is below, and a diagram.
I am using a parametric model of M=[X.^2;X;Y] to estimate a quadratic with parameters [2;0.7;2]... |
I am new to this so don't know if I am asking the right question as I just read about its usage but didn't know what exactly a cumulative Binomial probability is.
So my question is: What are cumulative Binomial probabilities? Any example will be of great help.
|
I have a dataframe with many observations and many variables. Some of them are categorical (unordered) and the others are numerical.
I'm looking for associations between these variables. I've been able to compute correlation for numerical variables (Spearman's correlation) but :
I don't know how to measure correlation... |
I have a series of physicians' claims submissions. I would like to perform cluster analysis as an exploratory tool to find patterns in how physicians bill based on things like Revenue Codes, Procedure Codes, etc. The data are all polytomous, and from my basic understanding, a latent class algorithm is appropriate for t... |
I have been reading about the Supervised and Unsupervised learning. What I came to know through this link is that in case of Supervised learning you have a set of input and a set of labels which are then used in the training phase whereas in case Unsupervised learning there are no labels. Now my basic question is:
Sin... |
What would you use to categorise or rank a Resume/CV with machine learning?
I would like to make particular CVs stand out to recruiters.
|
I am running a multiple linear regression using SPSS to test the effect of ethnicity and ethnic/racial attitudes or perceptions on political predispositions.
One model, as an example, looks like this:
DV: 'support for democracy' (1-7 scale)
Controls: age, gender, education etc.
Predictors: Ethnicity, and various attit... |
I want to calculate the area under the first derivate. Can I do that with splinefun()?
Year <- c(1959, 1960, 1961, 1962, 1963, 1964, 1965, 1966, 1967, 1968, 1969)
Population <- c(4835, 4970, 5085, 5160, 5310, 5260, 5235, 5255, 5235, 5210, 5175)
sample <- data.frame(Year, Population)
sample
plot(sample, type='l')
spline... |
I'm studying a stochastic process generated by simulation using two different methods. In the first, the waiting time between events can be shown to be exponentially distributed. To model the credibility interval for the rate of events, $k$, I'm using an analytic form of the posterior distribution generated with a unif... |
Is there a way to convert both, Spearman's $\rho$, and Cramér's V into the same effect size (f.e. Cohen's $d$), in order to have an information about which of the underlying relationships (nominal&ordinal --> Cramér's V; ordinal&ordinal --> Spearman's $\rho$) is stronger?
Fictitious example:
(a) Spearman's $\rho$: 0,4 ... |
I have a question about loss function in bayes classification. Let see similar case of loss function in linear classification:
Given data $(x,y)=${$(x_1,y1)....(x_n,y_n)$} is map to label $T=${-1,1}. The loss function of that method is given by
$$L=\sum(y-T)^2$$
How about if I use bayes classification,which is loss fun... |
As the title says, I'm getting some interesting results from gbm.perf. The first time I ran into trouble was after a run where n.trees was set to 7,000. When gbm.perf also returned 7,000 I got suspicious. So I ran a test where n.trees was 7. gbm.perf's value: 7.
|
I am trying to use the R package "urca". It has functions cajorls and cajools, which do ordinary least squares (OLS) regression of restricted and unrestricted vector error correction model (VECM) respectively. Both functions take in the VECM estimated using Johansen procedure and return the regression parameters and co... |
I have a population of 6 million text files with which I want to perform sentiment analysis (and text analysis more generally). I will need to manually hand code a subset of these texts into positive and negative. Is there an equivalent of a "power calculation" or rules of thumb to help me determine how large my sample... |
In CHAID, the categories are merged when P>alpha in the first step.
BUT
Since CHAID uses Chi-square statisitic, if p-value < alpha, we reject the null ( Independence), hence, meaning the categories are not independent, thus Merge.But this line of thought is not the case reading the algorithm steps, which says merge whe... |
My mother heard about free SPSS 16 and gave me the task of finding a safe download of it. However, I can't find any site (except torrents) that actually have it available, they all seem to use SPSS 16 as a bait and switch to take you to the page with the latest version.
|
In my introductory book on time series analysis the backshift operator $\mathbf{B}$ is introduced using the following definition:
$$
\mathbf{B}x_t=x_{t-1}
$$
Then the author sets off to derive some properties of random walks, and there is this step, that is a complete mystery to me:
$$
x_t=(1-\mathbf{B})^{-1}w_t\Righta... |
I have binomial outcome data for three groups that I am analyzing with Cochran's Q test. As discussed at this site, Cochran.
However, I have to repeat this seven different times because I am analyzing performance of three diagnostic tests to see if they can find resistance to seven different drugs.
When there are s... |
I've read about the ABC rejection algorithm when not being able to calculate the likelihood directly, and my question is: if we have to introduce a distance measure $\rho(D,D')$ anyways, why not use that measure as a pseudo-likelihood to weight the $\theta$ that generated $D'$ instead of thresholding on an arbitrary va... |
I am working on a classification project and I want to use SVM's and/or Clustering Algs.
What I am having trouble with is deciding how to set up my feature vectors. I have already decided what my features will be and I have already taken into account things like correlation and overfitting.
Some of my features are cate... |
I am trying to run a probit regression using panel data in R by first computing the log likelihood and then using the optim function to optimize.
Scale of predictor variables: The predictor variables that I have vary in scale significantly. Some of the variables are in tens while some are in '000s. When I am trying t... |
My understanding is that prcomp and princomp work off the dataset itself (row of observations, across variables in the columns). Is there a function that will run a principal component analysis directly off a correlation or covariance matrix, without having the "raw" dataset?
|
I have a kind of obscure question about using the Least Angle Regression (LARS) algorithm for variable selection. If I'm understanding it right, my professor formulates LARS as such:
$$\mathbb{min}\ \hat{y}^T\hat{y}\ \mathbb{such}\ \mathbb{that}\ |t_j| \le t\ \forall\ j$$
where $t_j\ = (x_j^Tx_j)^{-1/2}x_j^T(y-\hat{y})... |
I'm trying to understand matrix factorization models for recommender systems and I always read 'latent features', but what does that mean? I know what a feature means for a training dataset but I'm not able to understand the idea of latent features. Every paper on the topic I can find is just too shallow.
Edit:
if you ... |
Number of obs = 501
, Method: Fixed-effects regression
Number of groups = 101
F( 10, 100) = 3422.31
, Prob > F = 0.0000
, within R-squared = 0.6325
My model (panel data with fixed effects) has six variables and four dummies for five years and as you see above, t... |
I am trying to design a network (more precisely a directed acyclic graph) with specific edge lengths. The data is on the form of an edge list, and for each edge, there is an associated length. It might take the form of an edgelist matrix and a vector containing edge length, such as :
> edgelist = matrix( c("A","B","B"... |
I'm trying to predict a price for an item on the website. I'm interested in classifying the prediction as good or bad. There are two approaches that I can think of, and I'm wondering which one is better and why:
See what percent of the time the predicted value falls within a certain distance away from the actual value... |
I'm kind of a noob to EFA and am trying to use the FANode object in Python. This is from the MDP library. I am using it on survey data to see which variables are tied together. Whenever I run it on my data, I get the following error:
mdp.NodeException: The covariance matrix of the data is singular. Redundant dimensions... |
I have the same problem as the following post, but I have more samples and the index of the outlier is known.
Outlier treatment in Vector Autoregression (VAR) Model
I tried deleting the outliers; it works. I also want to try including dummy variables for the outliers (the dummy take the value of 1 on the outliers, and... |
I have a series of dollar amounts that are highly right skewed, but are roughly log-normal. I want to put this grouped dollar amount as a predictor variable into a latent class cluster analysis. In this case I'm not sure whether transforming into log-normal makes sense for a predictor variable, as opposed to just binni... |
In my multivariate dataset I have over 100 objects/cases that have been coded on 20 different variables. Several variables are ordinal and several variables are nominal. Is it possible to use non-linear principal components analysis as a dimension reduction technique on this dataset? I am not certain how to approach op... |
I have a large dataset (>300,000 rows) with two variables. y is binary and x is continuous & numeric. I'd like to plot y and add smooth curve against x. I understand that loess(y~x) is a solution, but since I have such a big dataset, it takes too long to run, even if I set the 'cell' parameter to 500.
Using scatter.smo... |
How do you report results that give you a p-value of 0.08 for a two-tailed test and a p-value of 0.04 for a one-tailed test? Generalizing the issue, if you obtain a p-value between 0.05 and 0.9999 from a two-tailed test, does it make sense to proceed with a one-tailed test in the direction whose p-value is less than 0.... |
It's usually straightforward to do a Power Analysis to compute the minimum sample size, especially in R which is my preferred statistical computing environment.
However, I am being asked to conduct a Power Analysis that's a little different than anything I've done or which I can find reference to online. I'm wondering ... |
I’m building a model using Linear SVM from the Scikit-learn package in Python. I have found that Linear SVM performs much better on my training set than Logistic Regression.
My question is, is there a way to interpret the coefficients from my linear SVM in a similar way as we would interpret logistic regression coeffi... |
Background:
Some years ago, I was working for a professor specialized in macroeconometrics. As a student research assistant, it was my task to replicate other papers and "play around" with the data. I learned quickly that many published results were not even robust to small changes in the modeling setup (e.g. if you om... |
I have some elementary problems understanding the consequences of using/adding a lagged dependent variable in my predictive model. I’m trying to predict values $Y_{i,t+\tau}$ for $\tau=1-3$ with:
$Y_{i,t+1}=a+bY_{i,t}+cX_{i,t}+e_{i,t+1}$
$Y_{i,t+2}=a+bY_{i,t}+cX_{i,t}+e_{i,t+2}$
$Y_{i,t+3}=a+bY_{i,t}+cX_{i,t}+e_{i... |
I am interested in building quality control charts for time series data where every data point has different gradation within the range of 0 to 1. For example first data point X1 may be 0.1, 0.2,..,1 and second data point X2 may be 0, 1/3, 2/3, 1. Third data may have some another interval.
The data is not seasonal and... |
I have read through the scikit learn documentation and Googled to no avail. I have 2000 data sets, clustered as the picture shows. Some of the clusters, as shown, are wrong, here the red cluster. I need a metrics to method to validate all the 2000 cluster-sets. Almost every metric in scikit learn requires the ground tr... |
Suppose that you have a population with $N$ units, each with a random variable $X_i \sim \text{Poisson}(\lambda)$. You observe $n = N-n_0$ values for any unit for which $X_i > 0$. We want an estimate of $\lambda$.
There are method of moments and conditional maximum likelihood ways of getting the answer, but I wanted to... |
I have two variables over two different years. Week by week pageview numbers in 2013 and 2014 and week by week # of posts in 2013 and 2014 (number of articles posted).
I'm trying to find out if posting less frequently has caused a dip in pageviews.
Right now I am taking the percentage difference for pageviews and posts... |
In logistic regression, if we considered residuals, could they only take on the values $0$ or $1$? The data points themselves take on only $1$ or $0$. The logistic curve can take on any value between $0$ and $1$. What would the distribution of the residuals look like?
|
I am studying intervention analysis in time series with the Cryer and Chan book and am looking at trying to understand how to code the step response interventions. One question I had is how to differentiate between these two models:
It appears the only difference is in (c) the value of $\delta$ is constrained to be 1.... |
this is my first post so let me know if you need more information. This is a pretty general question for now, but I am not sure how to approach this.
The data I have is from an ecological study. In this study, we had two different kind of experimental landscapes, landscape type A and B. We had 8 replicates for landscap... |
I have a general doubt regarding clustering. I have a data set of size 1196*18675. where 1196 is the no of documents. I am trying to cluster the data with k=7 using k-means. Each time the clustered group varies in size.
[iter] c1 c2 c3 c4 c5 c6 c7
[500] 346 233 151 128 126 125 87
[1000] 286 162 149 146 166 99... |
I am reading inference statistics by casella and berger. They are deriving the general formula for the probability distribution like that:
$$EX=\sum_{x=1}^{N}xP(X=x|N)=\sum_{x=1}^{N}x\frac{1}{N}=\frac{N+1}{2} $$
I do not get the step before the result. I would appreciate your explanation on this step!
|
I want to cluster photos and map them to places.
As input I have
Photos with locations (lat, long)
Places - some as (imprecise) bounding boxes, some just as points, maybe others as bounding geometries
However, all are not exact - photos relating to a building will be taken near, but outside the building.
Also, boundi... |
If we use the formula:
$$r = \displaystyle \frac{\displaystyle\sum_{i=1}^n \left( x_i - \bar{x} \right) \left( y_i - \bar{y} \right)}{\sqrt{\displaystyle \sum_{i=1}^n \left( x_i - \bar{x}\right)^2 \cdot \sum_{i=1}^n \left( y_i - \bar{y}\right)^2}}$$
for calculating $r$, we get $r = \frac{0}{0}$.
If we see $r$ as a ... |
At this moment I have a dataset with 4000 samples (50% positive and 50% negative). Normally I would do cross validation for this approach, however besides normal data mining techniques I am also trying an alternate ILP approach.
Since I can't implement cross validation using the ILP system I am using, to maintain da... |
I'm currently struggling with the latent change model that I try to realize in R with the lavaan package. R can't estimate all standard errors, which makes me believe that the model is not fully identified.
I did not have identification problems with the latent state model, so I guess the critical part may be due to th... |
Imagine I organized a race between 2 types of ants. Type A and B.
At the end of the race, I have the ranking, which looks something like :
1 A1
2 A3
3 B5
4 A4
5 B2
...
Where, in A1, A is the ant type and "1" the ant ID. Ants do not interfere between each other during the race.
If I plot the proportion of A or B every... |
I would like to get the most important variables from a PCA result. I see two clusters in the plot. I now that is possible that there is no only one variable causing this, so maybe I would have to get more than one variable.
I'm using "Adegenet" R package. My original data is a matrix where rows are PubMed papers and c... |
I have a table of similarities (cosines) and I clustered it with the Ward method. Great outcomes, a wonderful dendogram, but then I tried to evaluate the quality of this cluster solution and I got stuck.
First: identifying the number of clusters in my data (cause in Ward is not like k-means where you have to set a prec... |
Say I have a dataset which includes three binary (dichotomous) variables: A, B, C, and C takes the value of A OR B. Many observations have missing A and B, and non-missing C.
I guess that C should be included in any multiple imputation model, since it contains valuable information. But is there any multiple imputation... |
My question is generally on Singular Value Decomposition (SVD), and particularly on Latent Semantic Indexing (LSI).
Say, I have $ A_{word \times document} $ that contains frequencies of 5 words for 7 documents.
A = matrix(data=c(2,0,8,6,0,3,1,
1,6,0,1,7,0,1,
5,0,7,4,0,5,6,
... |
My samples follow heavy tail distributions. I use a process to detect and remove "extreme" samples that goes like this:
Measure mean and standard deviation of samples.
Remove samples higher than mean plus 4 standard deviations.
Repeat from Step 1 - for a total of 3 times.
If there are no extreme samples then the abo... |
I am looking at clustered data and because I was trained in economics I tend to look at fixed effects and random effects as solutions. An alternative would clearly be multi-level modelling. However, for me the clustering is just a nuisance, so I only care about "controlling it out".
However, looking at the equation of ... |
The lmerTest package provides an anova() function for linear mixed models with optionally Satterthwaite's (default) or Kenward-Roger's approximation of the degrees of freedom (df). What is the difference between these two approaches? When to choose which?
|
I normally use MATLAB, or JMP but right now am working with R.
I have ~150 dimensional data with a few hundred thousand rows. Some of the columns are non-informative, they only have one value. This makes some of the descendants of "pairs" to fail.
I wish that I could say "pairs(mydata)" but that doesn't work well.
... |
I have data, which I am sure has a downward trend. I am trying to forecast this data using ARIMA and I want ARIMA to consider the trend when it is forecasting.
The first step in ARIMA is to determine the order of differencing for which I am using the KPSS test. The KPSS test in R has an option 'trend' and 'level'. Whi... |
I'm conducting a retrospective study to assess the efficacy of a new test for predicting sudden cardiac death (SCD). I also want to compare the accuracy of my new predictor with that of a conventional predictor. I'm not a statistician, so I would very much appreciate it if any of you experts can confirm that I'm in the... |
I am analyzing a segregating population of plants coming from an hybridization process.
The experiment consists in several field plots (according to an augmented design). In each plot a segregating population coming from an hybrid plant was seeded. Therefore, the plants into each plot are segregating. I defined severa... |
When we study differences between a treatment and control group in an experimental setting, we want to test whether those differences are big enough that we can conclude they are not simply due to chance.
(Lacking official terminology for the some concepts below [especially #2], please either grant me a little creative... |
I've used bayesian estimation to test the indirect effects within a model and identified 95% credible intervals.
I'm typically used to using the Sobel's z test to identify significant mediation, what is the Bayesian alternative?
|
I'm looking at data from experiments that have been run to look for a difference between proportions, 1-tailed.
In many of these it has been found that there is a significant difference between the two proportions (e.g., effect size of 3%, p<0.05)
However, I have run a post-hoc power analysis, inputting the effect size... |
I'm interested in logistic regression for modeling a classification problem.
I tried to study logistic regression with two books, "Discrete Choice Methods with Simulation" (Train) and "Applied Logistic Regression" (Hosmer and Lemeshow). To clarify my question, I picked two logit model examples from those books.
House... |
I am studying probability theory on my own and am trying to work the following problem in the book -
Let $X_1, X_2, . . .$ be independent, $U(0, 1)$-distributed random variables, and
let $Nm \in Po(m)$ be independent of $X_1, X_2, . . . .$
Set $V_m = max\{X_1, . . . ,X_{Nm}\} (Vm = 0 \ when\ Nm = 0)$. Determine
(a) t... |
I just used the standard formula to determine the sample size of a sample to match the mean of a pupulation with an error margin of 3 percentage points and with a 90% probability.
I know would like to check that the mean of my sample is actually within the 3% margin of error of the mean in the population.
To do so I a... |
Suppose we have training data set and a test data set. The outcome variable is binary. Is it usually necessary to split the training data set so that there is a cross validation data set? Or can you use the whole training data set to build a model and the use this model on the test data set? For logistic regression, fo... |
I am interested in building a model to predict the binary outcome, retention (1 - retained; 0 - not retained) with various potential predictor variables (either continuous or categorical).
With that being said, I have a dataset containing multiple records (magazine subscriptions) for some subjects. For example, I have... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.