search for: house

Displaying 20 results from an estimated 3494 matches for "house".

2009 Mar 12
2
R grep & gsub issue - sign seems to be causing an issue...
I would like to use grep and gsub to manipulate a vector to make the names used consistent, i.e. reduce a level or two. However, here is what I found when I attempted to use grep and gsub: > tmp_test<-c("House 1 Plot Plus +100","House 2 Plot Plus +100","House 3 Plot Plus -100","House 4 Plot Plus -100","House 1 Plus +100","House 2 Plus +100","House 3 Plus -100","House 4 Plus -100") > gsub(tmp_test[2], tmp_test[1], tmp_test) [1]...
2006 Feb 06
7
Delaying initialization of associations until first access
Guys, Say I have the following: ----- class Person < ActiveRecord::Base has_one :house end class House < ActiveRecord::Base belongs_to :person attr_accessor :color end ----- Then I have the following code: ----- john = Person.new john.house.color = "Blue" john.save ----- What I would like to have happen, is that on first call to john.house, if house hadn''t...
2006 Apr 06
6
all elements of an array
Hi there, i have a model house and a model owner A house can have many owners. Now i want to find all owners of a specific street and i want to list them So i do: houses = House.find(:all, :conditions => ''street LIKE "%foo%"'') So now i got an array of all houses in that street @owners = hou...
2006 Apr 04
4
Find records based on associated table''s colums
Hello, Let''s say I have a model for a "house". Each house has_a "city", which in turn has_a "state" which in turn has_a "country". The objective is to retrieve all houses in a given state, say "Massachusetts". Being new to Ruby on Rails what I like is that things that should be simple usually are...
2008 Jan 05
1
Likelihood ratio test for proportional odds logistic regression
Hi, I want to do a global likelihood ratio test for the proportional odds logistic regression model and am unsure how to go about it. I am using the polr() function in library(MASS). 1. Is the p-value from the likelihood ratio test obtained by anova(fit1,fit2), where fit1 is the polr model with only the intercept and fit2 is the full polr model (refer to example below)? So in the case of the
2004 Aug 01
4
help on ADSL shaping
Hi I have read the howto on qdisc''s a few times but I cant figure out how to use the shaping capabilities to serve my needs. In the village whera I live we have created a wireless local network consisting of 10 houses. One of these houses has an ADSL connection and services this connection to the other houses. To gain access to the network a member must have an accesspoint in client mode, the idea is that if each house has to use a certain accesspoint (with a specific known ip address) to access the router then...
2008 Sep 30
2
weird behavior of drop1() for polr models (MASS)
...rks as expected for regular main effects models, however when the model includes an interaction effect it seems to have problems with matching the parameters to the predictor terms. An example: library("MASS"); options(contrasts = c("contr.treatment", "contr.poly")); house.plr1 <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing); drop1(house.plr1,attributes(house.plr1$terms)$term.labels,test="Chisq"); house.plr2 <- polr(Sat ~ Infl * Type + Cont, weights = Freq, data = housing); drop1(house.plr2,attributes(house.plr2$terms)$term.labels,...
2004 Jan 08
3
Strange parametrization in polr
...of eta, as is apprent below. Is this a bug og a feature I have overlooked? Here is the naked code for reproduction, below the results. ------------------------------------------------------------------------ --- version library( MASS ) data( housing ) hnames <- lapply( housing[,-5], levels ) house.plr <- polr( Sat ~ Infl + Type + Cont, data=housing, weights=Freq ) summary( house.plr ) newdat <- expand.grid( hnames[-1] )[1:5,] cbind( newdat, predict( house.plr, newdat, type="probs" ) ) # Baseline probs: diff( c(0,tigol( c(-0.4961,0.6907) ), 1) ) # First level of Infl: diff( c(...
2006 Mar 23
4
belongs_to more than one model
Suppose I have one table: states id statename And I have two other tables that contains states: houses id color state_id places id place_name state_id How would my model relationships look like? class State < ActiveRecord::Base belongs_to house belongs_to place end class House < ActiveRecord::Base has_one state end class Place < ActiveRecord::Base...
2004 May 23
0
RE: {Virus?} {Spam?} Hi
...lls? www.lcos.org.uk SOMEWHERE TO STAY ON A SHORT TERM BASIS? Can I stay in the University Halls during the vacation? http://housing.lon.ac.uk/site7/AZ.htm#vacation anywhere else? http://housing.lon.ac.uk/site7/Looking.htm on a limited budget? http://housing.lon.ac.uk/site7/Hotels.htm Flats, Houses and Rooms over the summer? Details available for collection from the ULAO on production of your valid Student ID card from June 04 Where can I find information about studying at the University of London? http://www.lon.ac.uk/Courses_Research or email enquiries@eisa.lon.ac.uk
2003 Oct 27
2
variance component analysis for nested model
Given a set of data: > names(data) [1] "city" "house" "visit" "value" I am looking for a way to compute the variance components of the nested model (ie, visit 1 at house 2 at city 3 isn't related to visit 1 and house 2 at city 4), but different houses in the same city may be related, and different visits to the sa...
2008 Dec 18
1
inserting zero instances with zeroes in a matrix
Hi all, Suppose I had the below example where a survey was carried out recording the number of each type of pet in each house count<-c(2,1,2,1,2,3,4) house<-c("house1","house1","house2","house3","house4","house4","house4") pet<-c("dogs","cats","dogs","dogs","budgie","cat","hamste...
2003 May 05
3
polr in MASS
...pendent variable, "Infl" (low, medium, high), "Type" (tower, apartment, atrium, terrace) and "Cont" (low, high) are the predictor variables (factors). And I have some questions, hope someone could help me out. The following commands are from the MASS book as well. > house.plr<-polr(Sat~Infl+Type+Cont,data=housing,weights=Freq) > summary(house.plr)Re-fitting to get HessianCall: polr(formula = Sat ~ Infl + Type + Cont, data = housing, weights = Freq)Coefficients: Value Std. Error t value InflMedium 0.5663922 0.10465276 5.412109 InflHigh...
2006 Apr 13
7
Complex SQL in paginate command?
Hi all, Is there a way to create pagination with a complex SQL, more complex than the :conditions option will support? I have two databases, houses and images. Houses has_many images, and each Image belongs_to house. I''m creating a search engine for the house records and I''d like to be able to filter out all the houses without any associated images. So far I''m doing this by constructing a SQL query that goes so...
2006 Apr 03
2
Beginner: PBX for my house
Hi, I am renovating my house completely and installing new cabling for communication. I'm not to into this PBX thing but I would like to have a simple one for my house, to have different phone numbers for my family members, some kind of integration with my Broadband telephone, and possibly Skype.... Browsing the digiu...
2012 Apr 24
1
nobs.glm
Hi all, The nobs method of (MASS:::polr class) takes into account of weight, but nobs method of glm does not. I wonder what is the rationale of such design behind nobs.glm. Thanks in advance. Best Regards. > library(MASS) > house.plr <- polr(Sat ~ Infl + Type + Cont, weights = Freq, data = housing) > house.logit <- glm(I(Sat=='High') ~ Infl + Type + Cont, binomial,weights = Freq, data = housing) > nobs(house.plr) [1] 1681 > nobs(house.logit) [1] 72 -- Wincent Ronggui HUANG Sociology Department of F...
2013 Mar 26
1
Newey West HAC for pooled cross-section data
Hello: My dataset set contains several thousand rows of data, with each row containing information for a house. The variables include the sale price of the house, the quarter and year of sale, the attributes of the house, and the attributes of the neighborhood and the city in which the house is located. The data is for a 10-year period. No house is repeated in the dataset. In summary, the dataset can be ter...
2006 Apr 11
4
text_field_auto_complete not working in IE?
Hi all, I''m looking for some insight on why my text_field_with_auto_complete might not work in Internet Explorer. I''m using it in a fairly simple way, without much customization. I''ve broken it down and made a test page at http://realty.colemanation.org/houses/test which shows the behavior I''m having problems with. For me on Windows XP this page works fine in Firefox, with the autocomplete fields finding their values from the database and doing what they should. In Internet Explorer there''s no autocomplete behavior at all. (Note...
2004 Nov 11
1
polr probit versus stata oprobit
Dear All, I have been struggling to understand why for the housing data in MASS library R and stata give coef. estimates that are really different. I also tried to come up with many many examples myself (see below, of course I did not have the set.seed command included) and all of my `random' examples seem to give verry similar output. For the housing data, I have changed the data into numeric
2012 May 14
1
Post stratification weights in survey package in R
Hi all, I have data collected from a survey administered on a subset of the population. I also have the population proportions of variables such as gender, race and housing type. I would like to combine the weights from each separate cross tab (of gender, race and housing type) such that the weighted proportions of my survey data matches that of the population. I have tried the following: