search for: variablefix

Displaying 1 result from an estimated 1 matches for "variablefix".

Did you mean: variablefixed
2008 Mar 31
2
Finding a mean value of a variable holding a dummy variable fixed
I have time-series data on approval ratings of British Prime Ministers. The prime ministers dating from MacMillan onward till today are coded as dummy variables and the approval ratings are entered for each month. I want to know the mean value of the approval rating of each Prime Minister in the dataset and the approval rating during his/her first month and last month as PM. What R code should