09-01-2015
saslover
Calcite | Level 5
Member since
06-23-2011
- 13 Posts
- 0 Likes Given
- 0 Solutions
- 0 Likes Received
-
Latest posts by saslover
Subject Views Posted 1636 06-22-2011 04:48 PM 1891 06-22-2011 03:53 PM 1875 06-07-2011 04:51 PM 1895 06-07-2011 03:20 PM 1109 06-07-2011 02:44 PM 2458 05-24-2011 09:34 AM 2458 05-24-2011 05:39 AM 1510 05-24-2011 05:38 AM 1516 05-23-2011 06:58 PM 2477 05-23-2011 06:56 PM -
Activity Feed for saslover
- Posted Re: proc sql - odbc - convert numeric to character on SAS Health and Life Sciences. 06-22-2011 04:48 PM
- Posted proc sql - odbc - convert numeric to character on SAS Health and Life Sciences. 06-22-2011 03:53 PM
- Posted Re: importing excel-multiple variables in one cell on Statistical Procedures. 06-07-2011 04:51 PM
- Posted importing excel-multiple variables in one cell on Statistical Procedures. 06-07-2011 03:20 PM
- Posted importing excel-multiple variables in one cell on SAS Procedures. 06-07-2011 02:44 PM
- Posted Re: number of cycles and length of each cycle on SAS Health and Life Sciences. 05-24-2011 09:34 AM
- Posted Re: number of cycles and length of each cycle on SAS Health and Life Sciences. 05-24-2011 05:39 AM
- Posted Re: number of cycles and length of each cycle on SAS Procedures. 05-24-2011 05:38 AM
- Posted number of cycles and length of each cycle on SAS Procedures. 05-23-2011 06:58 PM
- Posted number of cycles and length of each cycle on SAS Health and Life Sciences. 05-23-2011 06:56 PM
06-22-2011
04:48 PM
I cannot do that. My dataset has a whole lot of junk characters in the sheets and they are not similar across all excel files. So PROC IMPORT doesn't work.
... View more
06-22-2011
03:53 PM
I have an issue.. I am using the ODBC with proc sql. This is my code
proc sql noprint;
connect to odbc
as atest (noprompt="DRIVER=Microsoft Excel Driver (*.xls);
DBQ=xxxxx.xls;");
create table day4 as
select * from connection to atest
(
select * from "abc tensile test 6-2-11.is$"
);
disconnect from atest;
quit;
Now the excel file reads in, but in my original data file I have some values for id that have 201 202 203 R201 R202. So SAS gives me missing values for all the character variables but reads in only numeric.
How do I define conversion of numeric to character variable inside my data step above in proc sql.
Any help is appreciated
Thanks
... View more
06-07-2011
04:51 PM
Yes.. It is separated by a single white space.
... View more
06-07-2011
03:20 PM
How do I import an excel file that has multiple variables in one cell? For instance
1 1001 1 M Day 2 3/16/2011 >276 1.3 >1655 0.17
The item in bold italic is in one cell. How do I separate it into multiple variables. The variables are id,day,sex,phase,date,a1,a2,a3,a4
It has to look like
obs id day sex phase date a1 a2 a3 a4
1 1001 1 M Day 2 3/16/2011 >276 1.3 >1655 0.17
Also the observations in the excel start from 16th or 17th row. The first few rows has other info that are junk. How do I read in data from here and get rid of the junk above.
Thanks a lot for your help.
... View more
- Tags:
- astrollogy
06-07-2011
02:44 PM
How do I import an excel file that has multiple variables in one cell? For instance
1 1001 1 M Day 2 3/16/2011 >276 1.3 >1655 0.17
The item in bold italic is in one cell. How do I separate it into multiple variables. The variables are id,day,sex,phase,date,a1,a2,a3,a4
It has to look like
obs id day sex phase date a1 a2 a3 a4
1 1001 1 M Day 2 3/16/2011 >276 1.3 >1655 0.17
Also the observations in the excel start from 16th or 17th row. The first few rows has other info that are junk. How do I read in data from here and get rid of the junk above.
Thanks a lot for your help.
... View more
- Tags:
- a
- astrollogy
05-24-2011
09:34 AM
I tried using your code.. but it has so many missing values and I would be unable to delete them.
Also the output has to look like this
animl_no cycle1 cycle2 cycle3
101 2 2 3
There are more than 400 cycles here, but in reality there are not more than 10 cycles. I have no clue how you get the 400 cycles.
... View more
05-24-2011
05:39 AM
It has many variables. But the variable of interest has observations that look like this
Est
Di
Met
Sp
Est
and so on
... View more
05-24-2011
05:38 AM
It has many variables. But the variable of interest has observations that look like this
Est
Di
Met
Sp
Est
and so on
... View more
05-23-2011
06:58 PM
How is it possible to determine the number of estrous cycles in dogs when the occurrence of the cycle is given.
For instance, when the determinants of the cycle is given by DI,PR,ES,ME,S,P where DI=diestrus,PR=Proestrus,ES=estrus,ME=metestrus,S=sperm,P=plug.
The occurrence of estrus is only that matters and the cycle is given by EST DI DI DI MET EST -- here the length of the cycle is 5 until the occurrence of next estrus.
A cycle is calculated from one estrus to another estrus. The length of the cycle is the period until next estrus occurs which is 5 in the above case.
How do I write a code to calculate this in Statistics. The endpoint is to calculate the number of cycles and length of each cycle.
The output has to look like this:
animal_id cycle1 cycle2 cycle3
101 5 3 2
102 2 3 1
103 3 1 2
... View more
05-23-2011
06:56 PM
How is it possible to determine the number of estrous cycles in dogs when the occurrence of the cycle is given.
For instance, when the determinants of the cycle is given by DI,PR,ES,ME,S,P where DI=diestrus,PR=Proestrus,ES=estrus,ME=metestrus,S=sperm,P=plug.
The occurrence of estrus is only that matters and the cycle is given by EST DI DI DI MET EST -- here the length of the cycle is 5 until the occurrence of next estrus.
A cycle is calculated from one estrus to another estrus. The length of the cycle is the period until next estrus occurs which is 5 in the above case.
How do I write a code to calculate this in Statistics. The endpoint is to calculate the number of cycles and length of each cycle.
The output has to look like this:
animal_id cycle1 cycle2 cycle3
101 5 3 2
102 2 3 1
103 3 1 2
... View more