Displaying 8 results from an estimated 8 matches for "labdata".
Did you mean:
slabdata
2005 Jun 23
1
Stop Warnings for Invalid Factor Level, NAs generated?
...reate a summary dataset.
The full code and data is too long to post. The snippet below might
explain what I'm doing somewhat. I'll work up some sample data and code if
no solutions are found.
...snip
> # Get info on first and last pair sets and lab names in last pair
> nlabs <- labdata[["LABNUMBER"]] #e.g. 1, 2, 5, 6, ...
> nolabs <- length(nlabs) #Total number of labs in last pair of labdata
> #dpdata <- labdata[which(labdata[["LABNUMBER"]] == 13),] #Dummy paired
data row
> dpdata <- rbind(labdata[0,], NA)
> pdata <- dpdata
> # Loop...
2005 Jun 09
2
Weibull survival modeling with covariate
I was wondering if someone familiar
with survival analysis can help me with
the following.
I would like to fit a Weibull curve,
that may be dependent on a covariate,
my dataframe "labdata" that has the
fields "cov", "time", and "censor". Do
I do the following?
wieb<-survreg(Surv(labdata$time,
labadata$censor)~labdata$cov,
dist="weibull")
This returns:
> weib
Call:
survreg(formula = Surv(labdata$time,
labdata$censor) ~ labdata...
2007 May 16
3
Filled step-function?
Hello,
I'd like to generate a filled step-function in R as you can see in the
attachement (image is generated by grapher, but I need a freely
available alternative). The problem is, that I don't know, how to fill
it up. My code right now looks like this:
pH <- c(0,6.1,6.1,6.3,6.6,7.3,0)
Tiefe <- c(0,0,10,40,80,120,10)
plot(pH,Tiefe,type="s",main="Tiefenfunktion
2006 Dec 28
0
RODBC not working when connecting to a Sybase database
What is this error message about and how do I troubleshoot it?
> sqlTables(channel)
Error in .Call("RODBCFetchRows", attr(channel, "handle_ptr"), max, buffsize, :
negative length vectors are not allowed
The channel was created as such
channel <- odbcConnect("Labdata")
I think this is telling me that my odbcConnect command worked
> odbcGetInfo(channel)
DBMS_Name DBMS_Ver
"Adaptive Server Anywhere" "09.00.0002"
Driver_ODBC_Ver Data_Source_Name
&q...
2009 Oct 21
3
Temperature Prediction Model
Greetings!
As part of my research project I am using R to study temperature data
collected by a network. Each node (observation point) records temperature of
its surroundings throughout the day and generates a dataset. Using the
recorded datasets for the past 7 days I need to build a prediction model for
each node that would enable it to check the observed data against the
predicted data. How can
2005 Dec 16
25
I Would Really Like to Try RoR but...
it''s been a nightmare trying to set it up. I keep getting a an
Application Error message when I try to navigate to a url which should
be taken care of by my newly created controllers. For instance, I
wanted to test RoR out so I created a MyTest controller which should
allow me to navigate something like:
http://localhost/rubytest/MyTest
but it does not. I have no problem getting
2002 Mar 12
1
RArcInfo Package, get.bnddata()
...ddata() in the RArcInfo package. I
installed the version 0.2 binary of the package for Windows and am using R
1.4.1 on Windows NT 4.0. I have had no problems importing and plotting arc
data with get.arcdata() and plotarc(). plotpal() also works fine. I've
been able to use get.arcdata(), get.labdata(), get.paldata(),
get.tablenames(), get.tablefields(), get.tabledata(). When I try
get.bnddata() as follows, I get an error:
> wet.bnd <- get.bnddata("wetlands\\info", "WETLANDS.BND")
Error in get.bnddata("wetlands\\info", "WETLANDS.BND") : Couldn...
2010 Mar 23
0
Frozen hash problem
...like to delete some records before saving them. I ran this
experiment:
before_save :prune_lab_datas
def prune_lab_datas
lab_datas.each do |lab_data|
lab_data.destroy
end
raise lab_datas.to_yaml
end
But nothing seems to be deleted in the hash:
---
- &id001 !ruby/object:LabData
attributes:
created_at: 2010-03-21 22:16:06
unit_id: "3"
lab_id: "81"
updated_at: 2010-03-21 22:16:06
id: "184"
lab_desc_id: "6"
value: "29"
attributes_cache: {}
changed_attributes: {}
errors: !ruby/object:Activ...