Displaying 20 results from an estimated 3508 matches for "housing".
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
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 been
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 = houses[0].owner i''ve got all the owners of the first house.
but
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 simple, and since we have easy access to
2008 Jan 05
1
Likelihood ratio test for proportional odds logistic regression
...here is only one independent variable, I
would expect the Wald test and the likelihood ratio test to give
similar p-values. However the p-values obtained from anova(fit1,fit3)
(refer to example below) are very different (0.0002622986 vs. 1). Why
is this so?
> library(MASS)
> fit1 <- polr(housing$Sat~1)
> fit2<- polr(housing$Sat~housing$Infl)
> fit3<- polr(housing$Sat~housing$Cont)
> summary(fit1)
Re-fitting to get Hessian
Call:
polr(formula = housing$Sat ~ 1)
No coefficients
Intercepts:
Value Std. Error t value
Low|Medium -0.6931 0.2500 -2.7726
Medium|...
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,
2008 Sep 30
2
weird behavior of drop1() for polr models (MASS)
...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,test="Chisq");
Notice that model 2 has a * instead of a + betw...
2004 Jan 08
3
Strange parametrization in polr
...but polr apparently thinks there is a minus in front 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....
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 <
2004 May 23
0
RE: {Virus?} {Spam?} Hi
...ou have been unable to find the information from the
links below please contact us again telling us you have not been able to
find the information and restate as specifically as possible your question.
Most general questions can be answered by referring to the A-Z section
of our website:
http://housing.lon.ac.uk/site7/AZ.htm
Some specific areas of common enquiry:
CAN WE HELP YOU?
http://housing.lon.ac.uk/site7/College.htm
I START NEXT SEPTEMBER CAN YOU HELP?
As no suitable offers are published prior to MAY you should re-apply for a
password at the end of APRIL. You will not be sent a password...
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 same house are probably
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")
2003 May 05
3
polr in MASS
Hi, I am trying to test the proportional-odds model using the "polr" function in the MASS library with the dataset of "housing" contained in the MASS book ("Sat" (factor: low, medium, high) is the dependent 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...
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
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 digium website didn't make me much wiser. I have a linux box that I can
2012 Apr 24
1
nobs.glm
...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 Fudan University
PhD of City University of Hong Kong
http://homepage.fuda...
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
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
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...
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:
library(survey)
gender.population <-
read.table("http://dl.dropbox.c...