.- help for ^predcalc^ (STB-58: sg157) .- Predicted values calculated from linear or logistic regression models --------------------------------------------------------------------- ^predcalc^ yvar [^if^ exp], ^x^var^(^xlist^)^ [^m^odel ^lin^ear ^l^evel^(^#^)^] Description ------------ ^predcalc^ calculates predicted values and confidence intervals from linear or logistic regression model estimates for user specified values for the X variables. Variables and options required ------------------------------ yvar -- dependent variable If yvar is continuous, defaults to linear regression. If yvar is binary (0,1), defaults to logistic regression. ^xvar(^x1=# x2=# ...^)^ -- list of X variables and value each is assigned. For example: xvar(age=50 gender=1 sbp=160) Options allowed --------------- ^model^ -- displays regression table. ^linear^ -- requests linear regression when yvar is binary (0,1); if not specified, logistic regression is assumed. ^level(^#^)^ -- specifies the confidence level, in percent, for calculation of confidence intervals of predicted values (default=95%). Examples -------- . ^predcalc chol, xvar(age=35 gender=1 sys=120)^ Uses linear regression to calculate the predicted cholesterol value for a 35 year old male with systolic blood pressure of 120. . ^predcalc htn, xvar(age=65 gender=0 smoker=1) model^ Uses a logistic regression model to calculate the predicted probability of being hypertensive for a 65 year old woman who smokes; the logistic regression table is printed. Author ------ Joanne M. Garrett University of North Carolina garrettj@@med.unc.edu See also --------- STB: STB-58: sg157