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 52491

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`.

0 votes
2 answers
1k views

Principal component analysis to reduce the number of observations

Principal Component Analysis (PCA) seems great to reduce the number of variables, but is it also good to reduce the number of observations? Here is an example: reflectance measurements were taken fro …
tmalves's user avatar
  • 78
2 votes
0 answers
325 views

Contrasts are giving wrong estimates using glht in R

The problem: glht is giving the direct differences between the estimates of the summary table (i.e., not summing each estimate with the intercept to obtain the estimated value). contrast1 <- matrix(c …
tmalves's user avatar
  • 78
2 votes
0 answers
59 views

Why predicted values differ among methods?

I am using the dataset Orthodont from nlme to simplify my example. library(nlme) fm1 <- lme(distance ~ age + Sex, random = list(Subject = ~ 1+age), data = Orthodont) First, I created the predicted …
tmalves's user avatar
  • 78
2 votes
Accepted

Comparing two models through ANOVA with different types of functions

The two models cannot be compared using anova() because the response variable is different (y vs. logy). There are similar questions in the cloud: How to use anova for two models comparison? You ca …
tmalves's user avatar
  • 78