Search Results
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 |
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
1
answer
527
views
Compare KM curve to Cox Proportional Hazard model with multiple variables
I have the cox proportional hazard model that has 4 explanatory variables.
newm3<-coxph(Surv(HoldTime, Indicator) ~ 1 + HIC+SH+DeckDur+Bushels_Scallops, df_model)
I have used the predict function …
1
vote
1
answer
8k
views
Predict function and categorical variables in R
Coding the two as factors allows for R to create dummy variables for each variable for use in the model. … create dummy variables for all levels for the two variables for input into predict, or does predict function act like zeroinfl where if the variables are coded as factors, this is done automatically by R. …
2
votes
Accepted
GLM with Gamma-Log link: How do I do Predictions?
If you include type="response" in your predict code then the predicted values will be on the response scale.
predict(object, newdata = NULL,
type = c("link", "response", "terms"),
…