# Tagged Questions

32 views

### Help, anyone knows how to do these two questions with R program? [on hold]

the first parts of first quesiton are ok with me. but i'm not really good with the 30 marks quesitons and second quesiton. help plz
122 views

### How to know if a data follows a Poisson Distribution in R?

I am an undergrad student and I have a project for my probability class. Basically, I have a dataset about the hurricanes that impacted my country for a series of years. In my probability Book, ...
182 views

### Hierarchical Bayes Normal-Normal Model

I have the following data for 8 runners in a 100 meter dash: ...
123 views

### What is the meaning of this formula in R?

I have rows of data with columns age, sex, education and ...
38 views

### Anisotropy in kriging for non gridded data

I have to perform a mapping of a DVB-T field (the TV signal), per every location I consider the median in time of the measurements, there are some issues, e.g. the variance seems to be proportional ...
263 views

### An example: Lasso regression using glmnet for binary outcome

I am having confusion and difficulties using glmnet with lasso where my outcome of interest is dichotomous. I have created a small bogus data frame below: ...
51 views

### Probability density function for a logarithmic spinner [duplicate]

I'm having trouble deriving the PDF for the following problem (from the book Doing Bayesian analysis with R and BUGS): Consider a spinner of the kind often found with board games, but with a ...
109 views

### Log Likelihood for GLM

In the following code I perform a logistic regression on grouped data using glm and "by hand" using mle2. Why does the logLik function in R give me a log likelihood logLik(fit.glm)=-2.336 that is ...
118 views

### How does the beta prior affect the posterior under a binomial likelihood

I have two questions, Question 1: How can I show that the posterior distribution is a beta distribution if the likelihood is binomial and the prior is a beta Question 2: How does choices the prior ...
52 views

### Finding predictions from a linear model

I'm trying to educate myself about predictive analytics and am using R to generate a linear model with the following data. ...
263 views

### R code for Kutner et al's Applied Linear Statistical Models?

I am self-studying Applied Linear Statistical Models by Michael Kutner, Christopher Nachtsheim, John Neter, William Li. Is there R code for the methods in the book?
180 views

### Covariance Matrices

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 ...
149 views

### Somers' D (contingency table) in R

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 ...
113 views

### Penalty value in changepoint analysis

I'm working with the changepoint R package in R and I understand everything but the penalty value. I know it changes the units of change in the mean, but I still don't know how to interpret it. How do ...
74 views

### Investigation to assess interaction of two predictors using R software

In preparation for my end of semester R exam, I've been working on the following CSV file which was modelled on R, which I'm currently having problems figuring out. To investigate this issue I ...
32 views

### Simulate LMM data with specific error values using R

I have a need to simulate data in R using the following: Simulate data for 5 (or more) subjects, indexed by $i$, $(i=1,~...,~5)$ with $6$ observations per subject indexed by $t$ $(t=1,~2,~...,~6)$. ...
224 views

522 views

### Classic linear model - model selection

I have a classic linear model, with 5 possible regressors. They are uncorrelated with one another, and have quite low correlation with the response. I have arrived at a model where 3 of the regressors ...
778 views

### R code for two sample t-test in case of equal variances

In R, how can I perform a two sample t-test in the case of equal variances? My actual problem is to compare different algorithms for length measurements in machine vision. I have studied Applied ...
757 views

### Uncorrected pairwise p-values for one-way ANOVA?

I'm performing a relatively simple one-way ANOVA as part of a class exercise. I'd like to get pairwise uncorrected p-values out of R, so I can do a sequential FDR test in another package (I realize ...
3k views

### Coverage probabilities of the basic bootstrap confidence Interval

I have the following question for a course I'm working on: Conduct a Monte Carlo study to estimate the coverage probabilities of the standard normal bootstrap confidence interval and the basic ...