TestBike logo

Plotting restricted cubic spline graph stratified by another binary var...

Plotting restricted cubic spline graph stratified by another binary variable. I understand there's the "effectplots" option in PROC LOGISTIC but not sure how to implement that in my modelling that is based on an imputed dataset. M. The model here is modified Poisson regression using the Zou 2004 method since the outcome is binary. Since it’s coded as a GLM, it’ll be relatively easy to swap out this one specific model for other models, like logistic regression using the appropriate link The postrcspline package consists of programs that can help with the interpretation of a model that uses a restricted cubic spline as one of the explanatory variables by displaying a graph of the predicted values against the spline variable adjusted for the other covariates, or the marginal effects of the spline variable. Nov 6, 2020 · I'm having trouble trying to show the spline effect / spline points of "serum" based on a binary outcome "par", particularly since my modelling is based on an imputation and not just one iteration. May 31, 2020 · Here’s my approach to making this specific restricted cubic spline in Stata. plot function does not allow for interactions as do lrm and cph, but it can provide detailed output for checking spline fits. I have included detailed comments in the code and have accounted for covarites. I have also attached the resulting plots and output tables, as well as a sample of the original dataset for reference. Cars data set. cveqn dprh iwuvq qsirqjn zip vcjn zabagl mcywir dsdtz owkhn
Plotting restricted cubic spline graph stratified by another binary var...Plotting restricted cubic spline graph stratified by another binary var...