instruction
stringlengths
9
38.7k
I have 150 properties that may occur in a population of 10000 people. Individual people may have none, one or a couple of these properties. The properties are not mutually exclusive and have different frequencies in the population. I would like to answer two questions here: Are particular sets of these properties asso...
In Bayesian inference, we usually sample from the posterior $f(\theta_1,\theta_2|-)$ via MCMC to compute point estimates for the parameters of interest. I am investigating an alternate form of arriving at a point estimate. Sometimes it happens that drawing from the full posterior, $f(\theta_1,\theta_2|-)$, is difficult...
What is the best way to show a relationship between: continuous and discrete variable, two discrete variables ? So far I have used scatter plots to look at the relationship between continuous variables. However in case of discrete variables data points are cumulated at certain intervals. Thus the line of best fit mi...
I want to compare the delays of packets belonging to some kind of traffic to the delays of packets belonging to some other (different and larger) traffic, all generated from the same machine. I would like to see if the distributions of the two groups of delays are the same. Samples for the first group are between size ...
I'm trying to plot the predictions of a linear model with multiple numeric predictors as a collection of plots such that $\hat Y$ is on the y-axis, each $X_j$ in turn is on the x-axis, and the remaining $X_{i\ne j}$ are all set to plausible values given $X_j$. Here is some example R code (syntax might look strange, it'...
I have just read a paper in which the authors carried out a multiple regression with two predictors. The overall r-squared value was 0.65. They provided a table which split the r-squared between the two predictors. The table looked like this: rsquared beta df pvalue whole model 0.65 NA 2, 9 0.008...
For 5 raters, I have calculated intra-rater Cohen's Kappa statistics for the test-retest nominal ratings, intra-rater Kendall's tau-b statistics for the test-retest ordinal ratings, and intra-rater ICCs for the test-retest scale ratings. Is it valid to calculate overall mean intra-rater reliability coefficients (Kappa...
Is there any adjustment required when computing the correlation coefficient between: continuous and discrete variable two discrete variables ? Thanks !
I have a sequence of densities $f_n(x_n)$, of random variables $X_n$, with means $\mu = 0$ and variances decreasing with $n$: $$ \sigma^{2}(X_n) = \frac{\sigma^2}{n}. $$ I am approximating $f_n(X)$ using a normal approximation $N(0, \frac{\sigma^2}{n})$. I would like to check if the normal approximation is getting bett...
I'm currently working on a regression problem where a subset of the predictor variables are zero-sum. By zero-sum I don't mean they all sum to zero, I simply mean that increasing one implies a decrease in one, all or some of the others. This fact makes these variables correlated, but it also means that there is a bui...
I would like to evaluate several different models that provide predictions of behavior at a monthly level. The data is balanced, and $n=$100,000 and $T=$12. The outcome is attending a concert in a given month, so it is zero for ~80% of the people in any month, but there's a long right tail of heavy users. The predictio...
I know that PCA can be used for dimensionality reduction but there's something basic escaping me. Let's say I have a feature set $F$ of $n$ features. After I run PCA, which of the following are true about the resulting feature set: It will be a subset of the original feature set $F$ with $k< n$ features where each of ...
Sorry if I'm asking a dumb question, but I'm not very good on statistics. I have tried to do an implementation of Kalman filter. I have double checked and the implementation seems correct with test values. But when I try it with real data (computer vision tracking system) I'm getting some nan or inf values.. So I thou...
I have two coefficients' estimates from a regression, each of which has an estimated standard error. I would like to know the quotient of these two estimates -- that is, divide one of the estimates by the other. What would be the corresponding standard error? Would this be a candidate for the Delta Method? If so, ...
A die is rolled 100 times. Find the probability that the mean value would be between 3 and 3.5. I've found the expected value which is 3.5 without idea what to do next.
I would like to run a loop in R. I have never done this before, so I would be very grateful for your help ! I have a sample set: 25 objects. I would like to draw 1 object from it and use it as a test set for my future external validation. The remaining 24 objects I would like to use as a training set (to select a mod...
How can I get the log likelihood or the probability value from the forward algorithm for an observed sequence? For example, when I executed the forward algorithm in R on a sequence of length 3 for a trained Hidden Markov Model of 3 states, it gave me the probability values for each observed symbol on each state: $$ \b...
I have two groups - one group which was presented with one picture of a politician with his wife, one group where the politician was alone. Participants in each group also answered questions (as a Likert-scale item) on how likely they were to vote for that politician. I need to compare how likely each group was to vot...
Suppose we say that the prevalence rate of some disease is $1$ in $50$. Does this make sense? Or should be convert this into a $ \%$? That is, should we say that the prevalence rate is $2 \%$?
I am a Ph.D. candidate of Applied Linguistics. Currently I am involved in a research study about English teachers' provision of corrective feedback on English L2 learners' errors. I have divided the teacher participants into two groups. I want to juxtapose the groups in terms of the number (frequency) of corrections t...
I collect $n$ ($<20$) i.i.d. observations from any distribution. In order to compute the sample variance, I take $$s^2=\sum_i \frac{(\bar{X}-X_i)^2}{n-1}$$ If I want to build a confidence interval for the mean, I need the standard error of the sample mean. Do I divide by $n$, or by $n-1$ again? $$S.E. \stackrel{?}{=}\...
What is the difference between the two sets of statistic tests? Which is recommended for finding out if the difference between groups is more significant than within groups, for non-parametric stable isotopic signature data?
Prerequisites If I have given a histogram $y_1, \ldots, y_m$, as a hypothesis for the underlying distribution some discrete iid random variables $X_1, \ldots, X_n$ supported in $\mathbb Z$ where the $y_1, \ldots, y_m$ are realisations of $Y_1, \ldots, Y_m$ respectively with $$ Y_k := \sum_{i=1}^n \delta_{kX_i} \quad,...
I need to compute the Somers' D for a contingency table (choosing between R|C and C|R), but I can't find any function to do this. I know there is the somers2 function in the Hmiscpackage, but it only works for 2x2 tables. Does anyone know how to do this? Thanks! EDIT: I think I've found a solution, but I'm not sure i...
I have bootstrapped my multiple logistic regression model. SPSS does report OR and its confidence intervals for a non-bootstrapped multiple regression, but when it bootstraps the same model, it just gives B (beta) and CI for B. I know OR is exponential of B and theoretically I can convert them to each other. But I don'...
This paper discusses some of the dangers of using stepwise variable selection procedures: http://www.auburn.edu/~tds0009/Articles/Whittingham%20et%20al.%202006.pdf I'm struggling to understand Figure 1b. The authors generated data according to the model $y = 0.5x + e$. Datasets of sample size $n$ = 10 were drawn and a ...
I'm somewhat new the world of statistics, or at least it has been years since I last used it and basically the only program I know generally how to work with is SPSS. However, for my Master thesis I need to analyse a dataset I made, so there's no escaping it now. My research is about whether there is a difference in t...
I know the interval for a unconditional forecast. However, my question is: How do you estimate a forecast interval for a conditional forecast? Can anyone give me a hint?
I have a conceptual problem to understand the standard error of the ratio of two random variables after error propagation. Let $X$ and $Y$ be two random variables with means $\bar x$ and $\bar y$ and standard errors $se_x = \frac{\sigma_x}{\sqrt{m}}$ and $se_y = \frac{\sigma_y}{\sqrt{n}}$, where $m$ and $n$ are the sam...
My dataset is made of a label, $y_{t}$, which is the dependent variable, and about 20 columns of independent numeric variables, $X_{t}$, $t=1,2,...,T$. These samples are time series and my goal is to classify $y_{t}$ according to $X_{t}$. The dependent variable can get just two labels: "$0$" or "$1$". Probability of be...
When using Newey-West standard errors for my t-statistics of the slope coefficients in an OLS regression, can I still use the usual critical values for two-sided tests? (1.645 for 10% significance, 1.96 for 5% and 2.58 for 1%)
To make a Computerized Adaptive Test out of a sample of 20 dichotomous items a typical course of action would be to: 1) calibrate respondent data with a R package like mirt or ltm using Rasch, 2PL etc. 2) create an itembank based on obtained item parameters using catR then, for each item/test taken: 3) use catR's nextI...
I would like to do a t-test in R. Unfortunately, statistics has never been my best subject, so I'm wondering what the output of t.test in R exactly mean. For testing purpose I performed a t-test on two normal distributed vectors with equal parameters. Since both distributions have the same parameters, the difference of...
I am not sure what to do with this regression residuals. The Normal Q-Q plot is indicating that residuals are non-normal (not too extreme) and residual variance is not constant (not too bad). My input variables are factor variables so I am not able to normalize it. What do you guys think about this plot? Should I con...
I am working on a piece of software to detect opinions in text. As a simplistic example, I would like my algorithm to tell me that Andrea has a positive opinion +1 (rather than neutral 0 or negative -1) of New York when I enter the following sentence: Andrea loves New York. Now I have hundreds of millions of unstruct...
I have sparse overdefined system of linear equations. For example I have n variables, m equations(m>n) and k equations from m are "bad" equations that represent outliers. Is there any methods to solve this problem? I already found techniques such as iterative reweighred least squares,LMeds,M-estimator but I'm not sure ...
I would like to compare models selected with ridge, lasso and elastic net. Fig. below shows coefficients paths using all 3 methods: ridge (Fig A, alpha=0), lasso (Fig B; alpha=1) and elastic net (Fig C; alpha=0.5). The optimal solution depends on the selected value of lambda, which is chosen based on cross validation. ...
What is be the optimal ratio of sample size to the number of parameters in the multiple regression model? I am wondering as I would like to improve accuracy of prediction. Some sources suggest a ratio of 3 to 1, whereas others suggest 10 to 1. Any other suggestions?
it happened to me that in a logistic regression in R with glm the Fisher scoring iterations in the output are less than the iterations selected with the argument control=glm.control(maxit=25) in glm itself. I see this as the effect of divergence in the iteratively reweighted least squares algorithm behind glm. My ques...
I'd like to know how to best structure categorical variables. Based on some reading I did, most researchers suggest making the categorical variable into a factor. Let's say my categorical variables are something like Variable ( no ordering here, 9999 is just missing) 1 2 3 -1 9999 Anothervariable ( ordering here 5 i...
Preamble: I've had a couple of statistics courses @ uni, but can't really say I got "hooked" (I read NNT's Black Swan before starting the degree :), hence the depth of my statistical knowledge remained (so far) rather shallow and mechanical, lacking deeper insight and a "feeling" for the matter; maybe I'm just lacking ...
Suppose someone is trying to estimate the diagnostic prevalence of ADHD in a cohort of individuals born in 1985. What type of study is this? This is not a prospective cohort study because we are not comparing two groups (i.e an exposed and unexposed group). All individuals in this study are exposed (born in 1985).
My intuition is that the fitted values and predicted values of a gbm object should be identical. But in this example with just one tree, the values are different: b <- c(0,0,.8,0,0) x <- mvrnorm(100,mu=rep(0,5),diag(5)) colnames(x) <- paste0("x",1:5) y <- x %*% b + rnorm(10) gbm.fit.out <- gbm.fit(y=y,x=x,shrinkage=.1...
I am analysing data taken from observing about one million people over 24 months. For each person, each month is classified as a "success" or a "failure". I am specifically interested in the distribution of waiting times (= the lengths of runs of failures) between successes and in comparing this distribution to the d...
I am working with a dataset where I need to use non-parametric stats (won't go into details). It is behavioral data on captive animals ($n=8$), where $4$ treatments were introduced $3$ different times randomly. I have tested for difference in my repeats using a Friedman test. None were found. I am looking for a way to ...
Can someone please provide examples of labelled and unlabelled data? I have been reading definitions of semi supervised learning but it does not make clear on what the two actually are.
We have a iid sequence of random variables $X_1, X_2, \dots, X_n$, where $E(X_i) = \mu$ and $var(X_i) = \sigma^2$. The sample mean $\bar{X}$ converges to $\mu$ at rate $\sqrt{n}$ thanks to the LLN. If we have a continuous function $f()$, the continuous mapping theorem assures that $f(\bar X)$ converges to $f(\mu)$. My...
I am running a fixed effects regression in Stata: $y=\alpha+\beta D$ (omitting the FE), where $D$ is a dummy variable. Basically, I want the mean of group $D=0$ and of group $D=1$ after controlling for time invariant heterogeneity via fixed effects, along with their standard deviations. Stata reports coefficients and s...
Although I read this post, I still have no idea how to apply this to my own data and hope that someone can help me out. I have the following data: y <- c(11.622967, 12.006081, 11.760928, 12.246830, 12.052126, 12.346154, 12.039262, 12.362163, 12.009269, 11.260743, 10.950483, 10.522091, 9.346292, 7.0145...
I have data in the form of timestamp,lat,long which is gps data for users. I'm new to data mining and want to understand how can I start clustering these data to understand more about it. Should I like build a matrix of one trajectory v/s the other based on some distance metric and then apply some clustering algorithm...
I just want to describe in plain text a function that has many $1-p$ terms: $\frac{(1-p_1) + p_2}{2} × (1-p_3)$.
What is the reason for taking the natural logarithm of annual income, my outcome variable, instead of just leaving the variable as it is? What relationship would I be linearizing if I took the ln of the annual income? The relationship with the annual income and the number of people who reported a certain income or the...
First timer here. I'm reviewing a section of Casella and Berger on inverting a hypothesis test to get a Confidence Interval (CI), and came across a proof which I believe is missing a tiny piece. Here's the statement of the theorem verbatim from CB: Theorem: For each $\theta_0 \in \Theta$, let $A(\theta_0)$ be the acce...
I'm a psycholinguistics student with few knowledge in statistics and I have some doubts about a Correlation of Fixed Effects in lmer function (lme4 package). My response variable is RT (Reaction Time in a self-paced reading experiment) and my independent variables are Ant (PP, NP) and Verbo (SG, PL). I have modeled t...
I know what the term "posterior distribution" means (namely the conditional probability distribution of some parameter with respect to some observed data), but I'm reading an author that uses the qualifier "posterior" all over the place, mostly in contexts that I can't make any sense of. For example, "posterior median"...
I need help in calculating the goodness of fit for a Poisson model. The online literature on it is quite scarce, so if you have any useful articles and links I would appreciate it very much. Here is how the table looks like from SPSS. The outcome variable is a count of patents a company has. model http://img827.imagesh...
I am trying to find a way to merge data that correspond to users and have the form $user_i, property_1, property_2, .\dots, property_n$, where $n\geq50$, $i\geq 10^6$ We might have missing data in some cases (i.e. $property_k$ might be missing for some users), or we might have two or more users (lines in the database) ...
Is $||Y-X\beta||_2^2 + \lambda\beta^T K\beta$ , the standard loss-function in kernel ridge regression, or is it different? Also, is the gaussian kernel a standard choice used for the kernel, in practice? If not, which kernels are used more often than not? Also, is $\lambda$ the only parameter to be tuned via cross-vali...
I have heard it said that longitudinal and cross-sectional studies are forms of observational studies. Why can't longitudinal and cross-sectional studies be considered "controlled studies"? By their definitions, I think they can.
Background: I read one article where authors report Pearson correlation 0.754 from sample size 878. Resulting p-value for correlation test is "two star" significant (i.e. p < 0.01). However, I think that with such a large sample size, corresponding p-value should be less than 0.001 (i.e. three star significant). Can...
At my college I am doing a lot of testing, such as testing for autocorrelation, White , DW, $t$, $F$ etc. However, I always have to look up, when to reject and when to accept for example $H_0$ Hence, I was wondering if there is a generalization for interpreting a statistical test such as: When $value$ is greater than $...
In this paper by Angrist a stratification estimator is used (page 16 formula (4)) to calculate the Average Treatment Effect on the Treated (ATOT). The formula is given by: \begin{align} \widehat{ATOT}_{Stratification}=\sum_{k=1}^K \frac{\delta_{k} N_{1k}}{\sum_{k=1}^K\delta_{k} N_{1k}}(\overline{Y}_{1k}-\overline{Y}_{0...
Please allow me to ask a basic question. I understand the mechanics of Naive Bayes for discrete variables, and can redo the calculations "by hand". (code of HouseVotes84 all the way per below). However - I am struggling to see how the mechanics work for continuous variables (example code per below). How does the packa...
I am using Libsvm for Matlab. I would like to construct the model for a full circumscription of all training data (in the higher SVM-space). For this I assume all my training data is correct and has no outliers. I generate random distributed data (which is likely to resemble my real-world data) and train an one-class S...
I have 3 types of questionnaires, A 15 item scale with each item on a 7-point Likert type scale. Six subscales each containing different number of items 21 subscales each containing 4 items. I have collected a sample of size 100. How can I use this sample to determine the validity of these questionnaires? How c...
I am regressing monthly data that I know has significant seasonality. I have about 50 monthly observations. I was thinking of using 12 variables and for each row of my data turn on one variable depending on the month. I was then going to see what monthly variables were significant and then rerun for the these possibly ...
I am trying to better understand the conditions under which the application of continuity correction is appropriate for the normal approximation to the binomial distribution. Everything I have found says "this is something you should do" or gives an intuitive explanation, but I would like to see a formal proof or pape...
I need to run multiple regression with 2 IVs and 1 DV and include a control variables. The control variable is "Type of House" and has 4 categories: 1=bungalow, 2=apartment, 3=penthouse and 4=condominium. How do I enter the control variables into the model? Is it just the way it is (i.e., nominal) or do I have to crea...
Are studies in epidemiology all observational and not controlled? My impression comes from Wikipedia, which lists: Case Series Case Control Studies Cohort Studies Outbreak Investigations and no others.
In Bradford Hill criteria for causality Plausibility: A plausible mechanism between cause and effect is helpful (but Hill noted that knowledge of the mechanism is limited by current knowledge). I was wondering what plausibility or plausibile mechanism means? How is it related to association, correlation and causalit...
When using the sign test, we assume, that: $\textrm{test statistic} \sim Bi(n_+ + n_-, 0.5)$ ie. that the probablity of $+$ or $-$ to occur is $0.5$. But how about the case of values being the same (resulting in $0$). The probablity of $0$s increases when dealing with ordinal variables. How can the probablity still be ...
I run a small business, and I'm keen on understanding my market a little more. Market surveying and similar tools are not available to me, mainly due to time and budget. I don't require rock-solid data, just something that allows me to add a "pinch of salt" to my reasoning once in a while. Is it appropriate to use Baye...
Can somebody tell me whether the following R code (for econometrics endogenous variables) is for a Hausman test, a Nakamura test, or some other test? etudes1 <- lm(EDUC ~ EXPER+EXPERSQ+SMSA+SOUTH+FATHEDUC+MOTHEDUC) test <- lm(LWAGE ~ EDUC+EXPER+EXPERSQ+SMSA+SOUTH +residuals(etudes1)) summary(test)
How to interpret the labels with the outlier numbers when you plot the following in R (QQplot) set.seed(1) y <- rnorm(100) x <- rnorm(100) plot(lm(y ~ x), which=2) # which = 2 gives the plot It gives a number 61 on the top. What is it? I figured it might be the index of the outlier couple. It appears to be connected...
I am comparing two different models (multiple linear model). Basically the explanatory variables remain the same while response variable are different. $Model\ 1 - Y_1 = X_1+X_2+X_3$ $Model\ 2 - Y_2 = X_1+X_2+X_3$ I have results from R for both models. I am just wondering if two of these results eg $F$-statistics, ...
I am trying to find the best way to test the accuracy of a predictive model for the outcome of a game between two random teams. The model presents a chance for each game that team A will win (win chance). I have gathered almost 3500 samples comparing the win chance with the actual outcome. As a crude measure I broke ...
I have two groups (A and B), observed on day 0 and day 7. On each group there are 10 observations. So 2 x 2 x 10 = 40 results on my dataset. I want to find out if the control factor between group A and B had any effects over the week. Which statistical test should I use ?
Let $P$ be an unknown distribution on $(-\infty,\infty)$. Let $X_1,\ldots,X_n$ be an iid sample from $P$. Let $c_1,\ldots,c_n\in(-\infty,\infty)$ be a known set of constants. We observe $Y_1,\ldots,Y_n$, where $Y_i = 1(X_i < c_i)$. (That is, $Y_i=1$ if $X_i<c_i$ and is $0$ otherwise.) I'm looking for some "reasonabl...
Background: I read this article on "hackaday" about alleged "large-scale cheating" on the ISC exam. It gives this as source. Here is one of the images from the site: The hack-a-day asks for speculation about the nature of the "cheating" that the data indicates. My challenge is: determine the actual (non-cheat) distri...
I was asked to implement an Ornstein-Uhlenbeck process in one of my simulations. I have coded the process to visualize the results and I was wondering, if my first value is at the mean, why bother using an O-U process? I thought the advantage of an O-U process is that it is mean-reverting, but if I am starting at the m...
Actually, my question may just be about cross-validation in general. Here's what I'm doing: I'm trying to come up with a model using scikit-learn to learn on some data I've got. I've decided to use an SVM, using various kernels, to do the modelling. I've got about 50,000 data points from which to extract features. In a...
Here are 3 questions about econometrics and R codes. Test the endogeneity of the variable EDUC: etudes1 <- lm(EDUC ~ EXPER+EXPERSQ+SMSA+SOUTH+FATHEDUC+MOTHEDUC, data=Dataset) Call: lm(formula = LWAGE ~ EDUC + EXPER + EXPERSQ + SMSA + SOUTH + residuals(etudes1)) Residuals: Min 1Q Median 3Q Max ...
Suppose $\phi(\cdot)$ and $\Phi(\cdot)$ are density function and distribution function of the standard normal distribution. How can one calculate the integral: $$\int^{\infty}_{-\infty}\Phi\left(\frac{w-a}{b}\right)\phi(w)\,\mathrm dw$$
I'm trying to implement item based filtering, with a large feature space representing consumers who bought (1) or did not buy (0) a particular product. I have a long tail distribution, so the matrix is quite sparse. R is not handling it well. What can I do to streamline the measurement of cosine similarity?
I am running cluster analysis (using mclust in R) and then looking to see whether various known data groupings (based on metadata) reveals associations between clusters and metadata groups. For each cluster/groupings table I am using the chi squared test, and since there are multiple ways to group the data I am simply ...
I have a small problem regarding the fact of doing a cross sectional analysis using a longitudinal data set. I have a set of countries (87 countries), with different observations measured in different years (e.g. [Country], [Year], [X]: Netherlands, 1990, 0.5; Netherlands 1991, 0.3; Germany 1991, 0.4). Method 1 Now if...
Now I have a R data frame (training), can anyone tell me how to randomly split this data set to do 10-fold cross validation?
Suppose $Y_1,\dots,Y_n\mid\mu,\sigma^2 \sim \text{ iid } N(\mu,\sigma^2)$ and suppose the priors $\mu \mid \sigma^2 \sim N(\mu_0, \sigma^2 / \kappa_0)$ and $1/\sigma^2 \sim \text{gamma}(\nu_0/2, \nu_0 \sigma_0^2 / 2)$ are placed on the unknown parameters. Then \begin{align*} p(\sigma^2 \mid y_1,\dots,y_n) &\propto p(\s...
I was wondering if anyone knows of any really productive ways to graph/map/plot/visualize covariance matrix data. I am currently using levelplot() in R. It's very basic, and does the job, but we're looking for something better. We're also using R Shiny so that there is more interaction between the user and the data, bu...
My model is as follows: $$ \begin{aligned} y&=a_0 + a_1x_1 + a_2x_2 \\ x_2 &= b_0 + b_1x_1 + b_2z \end{aligned} $$ I'm only interested in the effect of $x_2$ on $y$. More precisely, I want to see the combined effect of: $x_2$ directly, and $x_2$ implicitly (through $x_1$) After estimating the coefficients, I have...
I am trying to determine parameters in a bayesian network with two latent variables (in blue). Every variable is discrete with 2-4 categories. The latent variables have 3 categories each. I am trying to find an R package that will let me define the DAG and then learn the conditional probability parameters from data: ...
I am looking for a KNN imputation package. I have been looking at imputation package (http://cran.r-project.org/web/packages/imputation/imputation.pdf) but for some reason the KNN impute function (even when following the example from the description) only seems to impute zero values (as per below). I have been looking ...
I have been asked whether there is any relationship between two variables $X$ and $Y$. I have done a simple regression and the confidence intervals suggest a small significant relationship. However, these variables are nonnegative and most of the points are "close" to (0,0) --- in the sense that in a graph of the point...
Would anyone be willing to venture an intuitive description of the situations under which a multivariate response model is more appropriate than many linear regressions? As an example, take a randomly allocated agricultural extension program, and yields of several different crops grown by farmers. You could run severa...
Why does gbm specified with Gaussian distribution throw negative values? Can it be controlled or modified if one does not want negative predictions (in R)?
I'm interested in how 14 environmental parameters co-vary with other environmental parameters and whether they show the same patterns in 3 regions. So 1st, I made a pairwise correlation table of the 14 environmental variables for each region. Then, I made another pairwise correlation table of correlation values from 3 ...
Using R I generated a Cox model looking like this > summary(cox5 <- coxph(surv_ob_2 ~ age + AMP + nation + GESL + year, data=sd)) # now gender makes sense Call: coxph(formula = surv_ob_2 ~ age + AMP + nation + GESL + year, data = sd) n= 35800, number of events= 31873 coef exp(coe...
Two medical interventions A and B were compared within randomised controlled trial: differences in progression free survival (PFS, i.e. how long patient lived with controlled disease, from entering study to progression) significant with p<0,001, differences in overall survival (OS, i.e how long patient lived, fr...
I am trying to calculate the marginal effects of a multinomial logistic regression. To do this I use the mlogit package and the effects() function. Here is how the procedure works (source : effects() function of mlogit package) : data("Fishing", package = "mlogit") Fish <- mlogit.data(Fishing, varying = c(2:9), shape =...
I have a large amount of data from three countries on work values. People are given 17 work value items (good pay, working with pleasant people, job security etc.) and asked the ones that they find important. The ones that they find important are coded with 1 and the ones that are not mentioned re coded with 0. Now, I...