恩师录 #124442 层

鄙人有些问题想跪求各位大师赐教,很急……先谢

楼主 · 1 楼
我想问的问题:"

About ALR, from some books it says ALR can be used when the response is binary, but in the data the response is proportion(nid/los). so, it is a little difficult for me to get the SAS code about ALR,. Can you give some advices further now?"
老师对这个问题的简单回答:"Does the format nid/los not work? One option is to restructure the data
to 0/1 type of data (by a little program in SAS or S-PLUS)."
请问怎么restructure the data?
注:
sas:是一个运算统计的软件
ALR:alternive linear regression
数据:

description of study and research objectives
a detailed description of the study providing the data for the analyses presented here has been given by alonso et al.(1996). briefly,data on the appropriateness of hospital stays of 1383 patients at the hospital del mar,barcclona,in two years, 1988 and 1990, were collected and processed in the study. each day of care for every patient was retrospectively reviewed by two physicians and scored by using the appropriateness evaluation protocol (aep) as developed by gertman and restuccia (1981). the aep protocol provides criteria for scoring hospital stay appropriateness on the basis of the clinical status of the patient and the level of medical and nursing care received. aparticular day was determined to be inappropriate if none of the 27 aep criteria was satistied.
hence, for every patient i, a set of ni obervations was collected, where ni is the total mumber of days in the ith patient's stay. the measured response was assigned a value of 0 or 1 depending on whether the day of stay was appropriate or inappropriate.we assume in this paper that the repeated measurements for the same patient during a single stay were correlated.we also assume that, for each individual, the probability of having the day classified as appropriate of inappropriate does not change over the couse of stay.
between 1988 and 1990,hospital policy changes were made to reduce the length of stay of hospital patients. one of the primary aims of the study was to determine the effects of these policy changes.a measure of the effect of policy change was the difference in the proportion of inappropriate stays,i.e. the change in the policies could be considered successful if the proportion of hospital stays that were deemed inappropriate in 1990 was lower than the proportion of inappropriate stays in 1988.because this was an observational study, adjustments of the raw proportions for each year were needed to account for differences which might be unrelated to the policy changes.these included, for example, differences in the inappropriate stay proportions between males and females or between the derrerent admitting wards.
the structure of the data as clustered binary responses suggests another measure of scientific interest beyond the percentage of inappropriate stays: the correlation between observations in the same cluster. in our hospital study, the within-cluter (i.e.within-stay)correlation is interpreted as the degree to which inappropriateness of a day propagates throughout the stay of an individual. low propagation(i.e.low correlation between successive days in a stay)would indicate more attentive and efficient hospital staff. because one of the goals of the study was to investigate the effect of policy changes, it was of interest to determine whether the propagation of inappropriateness changed between 1988 and 1990.
by examinging the changes between the two years on both the probability and the propagation scales,a broader summary of the effects of policy changes could be given. this is in contrast with the commonly used approach of seletion one day of a patient's stay at random. in addition to the problem of whether one day summarizes an individual's entire stay, this method does not allow an investigation of the clustering of inapproapriate stays.

2.1.5 the appropriateness hospital stays data
data on the appropriateness of hospital stays of 1383 patients at the hospital del mar,barcelona,in two years,1988 and 1990,were collected and processed in the study (see[?]). each day of care for every patient was retropectively reviewed by two physicians and scored using the appropriatenness evaluation protocol(aep).this protocol provides criteria for scoring hospital stay appropriateness on the basis of the clinical status of the patient and the level of medical and nuring care received. a particular day was deternimed to be inappropriate if none of the 27 aep criteria was satisfied.hence ,for each patient a set of observations was collected (over the total number of days the patient stayed in the hospital).beetween 1988 and 1990, hospital policy changes were made to reduce the length of stay of hospital patients .the research objectives were to determine the factors associated with the probability of a day being classified as inappropriate. the date set contains measurements on the variables length of stay (los), number of inappropriate days, gender(1=male,2=female), age at admission (years),ward (1=medical, 2=surgical, 3=other), year (88 or 90). see table2.4 showing the first records of this date set.

table2.4 the appropriateness hospital stays data

id los nid gen age wrd year
1 15 0 2 50 2 88
2 42 20 2 68 1 88
3 8 6 1 69 1 88
4 9 6 1 73 2 88
5 7 0 1 52 2 88
6
10 2 2 42 2 88
7 8 6 1 65 2 88
8 8 0 2 35 2 90
9 21 7 1 65 1 90

10 8 0 2 90 1 90

11 8 0 1 64 1 90

12 5 1 1 16 2 90
13 33 15 1 85 1 90
关于方法,我用了几个MODEL
一个一个试,希望最后找到最适合的 ,首先是LOGISTIC MODEL,还有GEE,GLMM,ALR,这个思路对吗?
2 楼
这是一位同学给我的建议,但是太模糊了

我想老师的意思就是:
Binary Inappropriateness;
if (nid/los < 0.5)
{
Inappropriateness = 0;
}
else
{
Inappropriateness = 1;
}
这样就可以把百分比转化为二值数据进行处理了.