Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 17672

Use this tag for any *on-topic* question that (a) involves `R` either as a critical part of the question or expected answer, & (b) is not *just* about how to use `R`.

2 votes

Aggregating time series data to one variable

These methods are implmented in the MSQC package in R. Analytical procedures for these are implemented in the spc package in R. …
Deathkill14's user avatar
  • 2,220
1 vote

Comparing success ratio based on unequal distribution of samples

Propensity score matching can be carried out in R using the MatchIt package. …
Deathkill14's user avatar
  • 2,220
2 votes
1 answer
136 views

How to perform augemented DOE in R [closed]

Is there a similar function in R or a way to achieve it with a sequence of calculations (also fine)? …
Deathkill14's user avatar
  • 2,220
5 votes

Algorithm and R implementation of sparse PCA

Another good package is the elasticnet package that Zou and Hastie put out. It has the function spca. Be careful to select a good value of $\lambda$, the sparsity parameter (or vector of them). I wo …
Deathkill14's user avatar
  • 2,220
3 votes

How to compute classification accuracy of PCA?

It may first make sense to think about how PCA can be used to classify observations in this setting. PCA is not in itself a classification method. It is a method for fitting a particular type of mod …
Deathkill14's user avatar
  • 2,220
2 votes
0 answers
89 views

Using regression fit to compare two groups at a time point

I have estimated a regression model in R with two groups, included as factors. …
Deathkill14's user avatar
  • 2,220
2 votes

What is the most sound way to perform variable selection on an lmer() model?

I would recommend the drop1 function in the R package lmerTest. lmerTest::drop1 also produces an F-test: not only is this test more accurate than the likelihood ratio test by lme4::drop1, it also avoids …
Deathkill14's user avatar
  • 2,220
1 vote

PCA Transformed data and regression

Here is a description of how to perform PCR in R. An alternative is to use Partial Least Squares (PLS). … There is a PLS package for R, though it has limited functionality. Both PLS and PCA can create problems of interpretation since they transform your original data into new variables. …
Deathkill14's user avatar
  • 2,220
1 vote
Accepted

Can I remove outliers from a residual plot? Or does this compromise the validity of my model?

A quick search finds, for example, this robust arima package for R. An advantage of using automated outlier detection methods is that the assumptions underlying them are usually well documented. …
Deathkill14's user avatar
  • 2,220