Displaying 17 results from an estimated 17 matches for "studentid".
Did you mean:
studenti2
2005 Oct 05
0
has_and_belongs_to_many on legacy DB
...egacy database. All is going
well (using set_table_name, set_primary_key, etc), but I can''t get my
many<=>many relationships to work.
My contrived example of the situation:
Student has_and_belongs_to_many Teachers. This is mapped via table
student2teacher where the foreign keys are studentId and teacherId. The
primary key in Student is studentId, and in Teacher is teacherId. However,
when I run my unit tests I am getting this error:
Mysql::Error: Unknown column ''j.student_id'' in ''where clause''
This is confusing, because I explicity specify that the...
2008 Jun 26
2
stuck on making a line graph across time, with 4 categories
I can't seem to find just what I'm looking for in R help, Everitt and
Hothorn HSAUR, Murrell's book, or the R graphics gallery at
http://addictedtor.free.fr/graphiques/. Probably not looking
efficiently, but anyway,
If my data look like this:
> head(data)
cat startyear studentid
1 other 2001 12
2 UHS 2001 17
3 Lourdes 2001 10
4 Endwell 2001 3
5 other 2002 13
6 UHS 2002 19
>
What is the easiest way to make a line graph like this (made this one in
Stata):
http://bingweb.binghamton.edu/~...
2006 Jan 04
4
HOWTO: Render partial in div
...ag :action => ''search'' %>
Enter Student Name: <%= text_field_with_auto_complete :student, :full_name %>
<%= submit_tag "Get Student Records" %>
<%= end_form_tag %>
# CONTROLLER
def search
# Get all the PLogs associated with user_id, student_id
studentid = params[:student]
fullname = studentid[:full_name]
name = Student.find_by_full_name(fullname)
@archives = PhoneLog.find(:all,
:conditions => ["user_id = ? AND student_id = ?",
@session[''user''].id, name.id])
# Render the tabs
render :partial => ''t...
2006 Feb 20
1
need help on nlme()
...odel on our data.
The outcome variable is binary.
I got the error when I wanted to add a group factor to my model.
My initial model is as below:
model.a <- nlme(response~ 1/(1 + exp( -intercept- u0 - slope*TIME -
u1*TIME)),
+ fixed=intercept+slope~1, random= u0+u1~1
|studentID,
+ start=c(slope=.01, intercept=-1), data=log.data,
method='ML')
This works fine on my data. But when i update it by adding a group factor
SKILLS,
I got the error message:
"Error in nlme.formula(response ~ 1/(1 + exp( -intercept- u0 - slope*TIME
:
s...
2011 May 24
4
Rails hates my recursive function
...the following code in my student model
def self.insert_dashes(term)
if /^([A-Z]|[a-z]|\d|-){11}$/.match(term)
term.insert 3, ''-''
term.insert 6,''-''
end
end
def self.find_record(rec)
if /^([A-Z]|[a-z]|\d|-){11}$/.match(rec)
student=Student.where(:studentID=>rec).all
elsif /^([A-Z\s]|[a-z\s])+$/.match(rec)
split=rec.split '' '',2
f_name=split.first
l_name=split.second
student=Student.where(:fname=>f_name,:lname=>l_name).all
else
bar=insert_dashes(rec)
find_record(bar)
end
end
If I try...
2005 Mar 09
1
Flattening a list of data frames
...,7,9)
b <- data.frame(x=c(2,4,7,9),y=c(2,3,5,4))
z <- list(a,b)
# Do "something" to get the equivalent of rbind(z[[1]],z[[2]])
???
More complex version:
My data is in this format because it's the output of a "by" statment
that looks like this:
y <- by(d,list(d$StudentID,d$Assignment),gapfun)
(where gapfun is a function I've defined that takes a data frame and
returns another data frame).
What I would like is to do is transform y into a data frame that has
columns "StudentID", "Assignment", and the columns in the data frame
returned by...
2009 Nov 12
1
Transforming a dataframe into a response/predictor matrix
I currently have a data frame whose rows correspond to each student and whose columns are different variables for the student, as shown below:
Lastname Firstname CATALOG_NBR Email StudentID EMPLID Start
1 alastname afirstname 1213 *@uark.edu 10295236 # 12/2/2008
2 anotherlastname anotherfirstname 1213 **@uark.edu ## 10295236 9/3/2008
Xattempts Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10 Q11 Q12 Q13 Q14 Q15 Q16 Q17 Q18 Q19
1 1 1 1 0 0 0 0 0 0...
2011 Jun 01
1
How to write random effect in MCMCglmm
...- ELL (num: 0, 1, - 2 levels)
- Disability (num: 0, 1, - 2levels)
- avgTransfers (num with missing values)
- sdTransfers (num with missing values)
- agec (num with missing values)
- PctELL (num)
- PctDisability (num)
- PctMale (num)
Random Effects:
- Schoolid, Teacherid, Studentid
library(MCMCglmm)
y <- MCMCglmm(factor(Level) ~ Type+factor(yr>=2006)+Male+Ethnicity+ELL+
avgTransfers+sdTransfers+agec+Disability+ELL*pctELL+Disability*pctDisability+
pctMale+factor(yr>=2008)*factor(Grade),
random=~Schoolid+Teacherid+Studentid,
family="...
2011 Feb 07
2
Using Aggregate for Date
Hi,
I am trying to find the min of day for each student in each year.
Here is the dataset:
date studentid year
1/1/05 6:07 AM 236 20082009
3/27/09 9:45 AM 236 20082009
4/29/09 8:44 AM 236 20082009
3/27/09 11:36 AM 310 20082009
4/1/09 10:43 AM 310 20082009
10/15/09 8:54 AM 310 20092010
10/22/09 8:54 AM 310...
2010 Aug 22
1
[LLVMdev] Request information about LLVM for research
...infrastructure and get my required
information.
Is your tool is a testing tool? Can it accept program and test case as input
and output like the input test case is cover which branch and which
variables' def-use of the program?
I am looking for that kind of tool.
Best Regards,
Pwint Phyu Kyaw
StudentID: 482-9504
Major: Information Technology
Assumption University
Bangkok, Thailand
---------- Forwarded message ----------
From: Chris Lattner <sabre at nondot.org>
Date: 15 August 2010 12:02
Subject: Re: Request information about LLVM for research
To: Pwint Phyu Kyaw <pwintphyukyaw at gmail...
2010 Aug 23
2
lmer() causes segfault
Hello lmer() - users,
A call to the lmer() function causes my installation of R (2.11.1 on
Mac OS X 10.5.8) to crash and I am trying to figure out the problem.
I have a data set with longitudinal data of four subsequent
performance measures of 1133 individuals nested in 88 groups. The data
is in long format. I hypothesize a performance increase for each
individual over time and intend to
2004 Sep 12
1
Discrepency between R and MlwiN
...data with measures nested within child. There are two measures per child. I've fit an unconditional growth model as in Singer and Willet (2003) that allows for variable intercepts
and slopes.
The R code for the analysis is:
model.uncgrowth.2lev <- lme(math ~ grade, mathdata, random=~grade|studentid)
The fixed effects estimates for the intercept and slope are the same between MlwiN and R. It's the random
effects estimates that differ. In particular, the residual error variance is ZERO using MlwiN and significantly
non-zero using R. It appears that MlwiN perfectly fits lines to each of the...
2010 Oct 13
2
LME with 2 factors with 3 levels each
...rmula: PTR ~ Test * Group + (1 | student)
Data: ptr
AIC BIC logLik deviance REMLdev
-625.7 -559.8 323.9 -706.5 -647.7
Random effects:
Groups Name Variance Std.Dev.
student (Intercept) 0.0010119 0.03181
Residual 0.0457782 0.21396
Number of obs: 2952, groups: studentID, 20
Fixed effects:
Estimate Std. Error t value
(Intercept) 0.547962 0.016476 33.26
Testtest2 -0.007263 0.015889 -0.46
Testtest1 -0.050653 0.016305 -3.11
GroupNoRepNTP 0.008065 0.022675 0.36
GroupRepNTP -0.018314 0.025483 -...
2011 Jan 27
4
HLM Model
Hi
I am trying to convert SAS codes to R, but some of the result are quite
different from SAS.
When I ran proc mixed, I have an option ddfm=bw followed by the model. How
can I show this method in R?(I am thinking that this maybe the reason that I
can't get the similar results)
below is my SAS codes:
proc mixed data=test covtest empirical;
class pair grade team school;
model score = trt
2006 Mar 23
0
warning message using lmer()?
Dear all,
I use lmer to fit a mixed effect model.It give some warnings. What can I
do about this?
Here is the function and the warning message:
> model.growth.mcas5 <- lmer(response ~ monthElapsed +
(monthElapsed|studentID),
+ data= mcas5, family=binomial(link="logit"), method='ML')
Warning messages:
1: nlminb returned message false convergence (8)
in: LMEopt(x = mer, value = cv)
2: nlminb returned message false convergence (8)
in: LMEopt(x = mer, value = cv)
3: nlminb returned messa...
2010 Feb 10
1
Count variables by ID
Hello,
I have an education dataset and I'd like to know how to count the number of
courses each student has taken in a particular subject. For instance, say
the course codes for "History" are 20-26 & 31 and I have the following data
Student ID Course Code
1 16
1 17
1 21
1 31
2 10
2
2010 Oct 15
0
nomianl response model
...625.7 ? ? ? ? -559.8 ? ? ? ? ?323.9 ? ? ? ? ? -706.5 ? ? ? ? ?-647.7
> Random effects:
> ?Groups Name ? ? ? ? ? ?Variance ? ? ? ?Std.Dev.
> ?student ? ? ? ?(Intercept) ? ? 0.0010119 ? ? ? 0.03181
> ?Residual ? ? ? ? ? ? ? ? ? ? ? 0.0457782 ? ? ? 0.21396
> Number of obs: 2952, groups: studentID, 20
>
> Fixed effects:
> ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?Estimate ? ? ? ?Std. Error ? ? ?t value
> (Intercept) ? ? ? ? ? ? ? ? ? ? 0.547962 ? ? ? ?0.016476 ? ? ? ?33.26
> Testtest2 ? ? ? ? ? ? ? ? ? ? ? -0.007263 ? ? ? 0.015889 ? ? ? ?-0.46
> Testtest1 ? ? ? ? ? ? ? ? ? ? ? -0.0506...