Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. PetrOtahal

    Data setup for PHREG with time-varying covariates

    I am trying to run a Cox's proportional hazards regression with time-varying covariates. I have survival data on 360,000 subjects with anything from 1 to 60+ readings of a continuous variable that I want to incorporate into the model (time-varying covariate). As well as some baseline...
  2. PetrOtahal

    Question: Exiting a Macro Iteration

    Have you tried using a GOTO statement. Here is a little counting macro, I have since changed it to much simpler code which does the same thing I wanted, but this may work for you. Essentially it scans a text string &CorVars and increments &NumCorVars by 1, when &CorVars is equal to nothing it...
  3. PetrOtahal

    Using Proc Template to format Estimates from GLM/CLParm

    You need to go in and edit the stat.GLM.Estimates template. This can be found by opening at the results window, then selecting 'templates' from the 'view' menu, and navigating your way through the sashelp.tmplmst to get to that particular template. Then you can copy the template into the editor...
  4. PetrOtahal

    Using Proc Template to format Estimates from GLM/CLParm

    Hi Klaz, thanks but I already tried those options, it must be hidden elsewhere, will contact tech support and post back with the answer. Cheers Petr
  5. PetrOtahal

    Using Proc Template to format Estimates from GLM/CLParm

    I'm running the following GLM code: proc glm data=shbg; model &modelDep = &BMImodelInd / solution clparm; run; And in order to format the number of decimal places in the output of the Parameter Estimates I use the following code: proc template; edit Common.ParameterEstimates.Estimate...
  6. PetrOtahal

    Squaring a macro variable

    I have a problem when trying to square the &B macro variable in the following code: data parmscalcs; array _YSSurv{5}; merge parms parmsmatrix; retain B; B=B; if Level=1 then do; B= 9 * &CumSurvFinal * (log(_YSSurv{1})+ log(_YSSurv{2}) + log(_YSSurv{3}) +...
  7. PetrOtahal

    ODS html output with graphics

    Need a little help with the following code: %macro RunModel; proc greplay igout=work.gseg tc=tempcat nofs; delete _all_; quit; *Delete all previous graphs; %do i = 1 %to 3 %by 1; %let modelDep=%scan(&Dependent,&i); goptions device=gif hsize=6 cm vsize=4 cm display...
  8. PetrOtahal

    Is this a Unix problem?

    The following also works to remove the undesirable characters: clean_pathol=compress(pathol,,'s');
  9. PetrOtahal

    Is this a Unix problem?

    Here is what I see: 4275726E69650D2020 so it looks like there is (null carriage return space space) after "Burnie".
  10. PetrOtahal

    Is this a Unix problem?

    Thanks ChrisW75, the colon solved the problem, don't need the upcase() command. The following works. data CleanM; set Clean; if pathol ne: "Burnie" then delete; run; Thanks again, Petr
  11. PetrOtahal

    Is this a Unix problem?

    Nick and Klaz, Thanks for the prompt replies. Unfortunately neither the trim nor upcase functions worked to solve the problem. I have found another way using a different variable (numeric) to do the subsetting. Thanks again. Petr
  12. PetrOtahal

    Is this a Unix problem?

    Having a problem with the data step. The following code works on my windows machine running SAS 9.1: data CleanM; set Clean; if pathol ne "Burnie" then delete; run; But will not work on a Unix machine running SAS 9.1. The only difference is that the windows machine has a random subsample...

Part and Inventory Search

Back
Top