Displaying 20 results from an estimated 899 matches for "insurance".
2011 Jun 06
1
Merge two columns of a data frame
I have the following data:
prefix <- c("cheap", "budget")
roots <- c("car insurance", "auto insurance")
suffix <- c("quote", "quotes")
prefix2 <- c("cheap", "budget")
roots2 <- c("car insurance", "auto insurance")
roots3 <- c("car insurance", "auto insurance")
suffix3 <-...
2012 Jul 19
3
Removing values from a string
So I have the following data frame and I want to know how I can remove all
"NA" values from each string, and also
remove all "|" values from the START of the string. So they should
something like "auto|insurance" or "auto|insurance|quote"
one = data.frame(keyword=c("|auto", "NA|auto|insurance|quote",
"NA|auto|insurance",
"NA|insurance", "NA|auto|insurance", "<NA>"))
one
Can anyone point me in th...
2011 Jun 09
1
Using a function inside a function
I'm trying to run a function inside a function but get an error message.
lst <- list(roots = c("car insurance", "auto insurance"),
roots2 = c("insurance"), prefix = c("cheap", "budget"),
prefix2 = c("low cost"), suffix = c("quote", "quotes"),
suffix2 = c("rate", "rates"), suffix3 = c("comparison"))
myf...
2009 Feb 23
3
Insurance data in library(MASS)
I have used the insurance data from R library and I have 2 questions:
I use the following:
>library(MASS)
>data(Insurance)
> m1=glm(Claims ~ District + Group + Age + offset(log(Holders)),data =
Insurance, family = poisson)
>summary(m1)
Call:
glm(formula = Claims ~ District + Group + Age + offset(log(Holders)),...
2010 Sep 21
1
package gbm, predict.gbm with offset
...ser may add the value of the offset to the
predicted value if desired." I am just not sure how exactly, especially for
a Poisson model, where I believe the offset is multiplicative ?
For example:
library(MASS)
fit1 <- glm(Claims ~ District + Group + Age + offset(log(Holders)),
data = Insurance, family = poisson)
head(predict(fit1, data = Insurance, type = "response"))
#glm.predict includes the offset:
head(predict(fit1, newdata = Insurance, type = "response"))
# 1 2 3 4 5 6
# 31.86358 35.27587 28.18080 158.87829 53.97...
2006 Oct 13
3
Validation errors in has_one/belongs_to relationships.
I have two objects, QuoteInput and Insured.
QuoteInput has one Insured and Insured belongs to QuoteInput.
I don''t understand what I''m seeing.
I assign an Insured to a QuoteInput. The Insured object has invalid
data.
I call save! on the quote input. QuoteInput has no validations.
I expect two things to happen - 1) an exception should be thrown,
indicating that there was a
2010 Nov 10
5
arrays of arrays
...<- 0 0 1 1
1 3 5
4 4
7 -1 8 9 10 6
I hope this makes sense. So basically if I want x[1,3] it will access 0 and
similarly x[4,2], -1.
Thanks in advance,
Sachin
p.s. sorry about the corporate notice.
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is...
2012 Nov 29
2
Data Cleaning -New user coming from SAS
...know the best way to script the
conditional logic that says something like if column 3 = "Loan #" then
Column 1 eq Column 4 and Column 2 eq column 6. Here is a snap shot of the
CSV file I am working with. Thanks
Loan #,Account
Name,Date,Action,Amount,Disbursed,Capitalized,Interest,Fees,Insurance,Principal,Interest,Fees,Insurance,Writeoff,Recovery,Balance
,,,,,,,,,,,,,,,,Page #: 11
,,Date,Action,Amount,Disbursed,Capitalized,Interest,Fees,Insurance,Principal,Interest,Fees,Insurance,Writeoff,Recovery,Balance
,,Loan #:,ML-123-07,Account Name:, Quilting Shop,,,,,,,,,,,
,,11/30/2009,Interest,2.3...
2010 Nov 11
2
comma separated format
...w do I get R to show 1e06 as
$1,000,000.
I was wondering if there was a single function which allows you to do that,
the same way that as.Date() allows you to show in date format on a plot.
Thanks,
Sachin
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is...
read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2
2020 Jul 15
2
read.csv fails in R console in Ubuntu terminal but works in RStudio after R 3.6.3 upgrade to R 4.0.2
...ymbol Name
LastSale MarketCap IPOyear
1 TXG 10x Genomics, Inc.
87.4400 $8.6B 2019
2 YI 111, Inc.
6.4800 $533.69M 2018
3 PIH 1347 Property Insurance Holdings, Inc.
4.5350 $27.52M 2014
sessionInfo()
R version 4.0.2 (2020-06-22)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 18.04.4 LTS
Matrix products: default
BLAS: /usr/lib/x86_64-linux-gnu/openblas/libblas.so.3
LAPACK: /usr/lib/x86_64-linux-gnu/libopenblasp-r0.2.20.so
l...
2007 Apr 26
3
A coding question involving variable assignments in ifelse()
Dear List,
Below is a simple, standard loss model that takes into account the
terms of an insurance policy:
deductible <- 15
coverage.limit <- 75
insurance.threshold <- deductible + coverage.limit
tmpf <- function() {
loss <- rlnorm(rpois(1, 3), 2, 5)
sum(ifelse(loss > insurance.threshold, loss - coverage.limit,
pmin(loss, deductible)))
}
net <- replicate(1000000, tmpf())...
2010 Nov 12
2
switching only axis off in plot
...names
win.graph();
plot(period,y);
#I dont want to lose this x-axis formatting :-(
win.graph();
plot(period,y, axes=FALSE, ann=FALSE);
axis(2, at=1:3, labels=c("A","B","C"));
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is...
2005 Aug 08
5
In-Line List Editing with AJAX
...ant files and the actual
error message below. I feel like the error must be in my
form_remote_tag call, but I''m not sure what it is. The
relationship is Contract has many Policies.
Thanks in advance for helping me sort this out.
AJS
./app/views/contracts/show.rhtml
===
<div id="insurance-policies">
<h2>Insurance Policies</h2>
<ul id="contract-insurance-policy-list">
<%= render :partial => "policy", :collection => @policies %>
</ul>
</div>
./app/views/contracts/_policy.rhtml
===
<li id="insurance-<...
2008 Jul 14
2
Insurance review statistical methods
Hi R users:
I will like to know if somebody works on insurance statistics
(actuarial problems) and had use TRICAST, and can tell me
if with all the R tools it can be build a solution
like TRICAST or similar.
In a word:
Do you think that R has all the statistical tools
(I mean modeling tools) to make a job similar to TRICAST?
Does TRICAST has modeling tools...
2010 Nov 09
1
date conversion and plot
...his into a Rdate and plot it? I don't want the
number of days from 1970's showing up as my date (Its the date I require).
Thanks,
Sachin
p.s. sorry about the corporate notice I can't remove it.
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is...
2010 Oct 31
1
parallel for loop
...blas somewhere. But is there a CPU or a GPU version of the for
loop?
Thanks,
Sachin
p.s. sorry about the corporate notice below: cant get rid of it. Don't have
other mail client access at the office :(
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is...
2010 Nov 11
1
trouble with plotting data- possible bug?
...]];
#???why is this part going wrong?
plot(period, month, type='l');
lines(period, month3, col=2);
p.s. sorry about corporate notice
(See attached file: small_table.csv)(See attached file: test.R)
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is...
2009 Mar 03
0
New R mailing list: R-SIG-insurance
Dear useRs,
Over the last few years R has gained a significant momentum in the
insurance industry. Dedicated packages have been written, numerous
presentations given, courses held, businesses set up, and IT
departments convinced. ;-)
Therefore, together with Markus Gesmann of Lloyd's of London, we
created a Special Interest Group mailing list to discuss R usage in
actuaria...
2010 Nov 14
1
cannot see the y-labels (getting cut-off)
...plot(1:5,y,ylab='',yaxt='n' );
axis(2, at=y, labels=formatC(y,big.mark=",",format="fg"),las=2,cex=0.1);
Any thoughts?
Thanks,
Sachin
p.s. sorry about corporate notice.
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz ...{{dropped:3}}
2010 Nov 11
1
plot options including formatting axes
...default
x-label and the default y-label remains the same.
Is there something I was supposed to do. I thought by specifying the 'xlab'
option in title it gets rid of the default one.
Thanks,
Sachin
--- Please consider the environment before printing this email ---
Allianz - Best General Insurance Company of the Year 2010*
Allianz - General Insurance Company of the Year 2009+
* Australian Banking and Finance Insurance Awards
+ Australia and New Zealand Insurance Industry Awards
This email and any attachments has been sent by Allianz Australia Insurance Limited (ABN 15 000 122 850) and is...