Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i would like to create this variable: piracy rate / 1 - piracy rate either in an Excel sheet or directly in R , programing,

i would like to create this variable:
piracy rate/1-piracy rate
either in an Excel sheet or directly in R, programing, then you take the log of it.
to produce a table like table 4 which is attached with exact information in R programming. can you provide me the steps both in R programming and excel.
i keep on having these errors message and would like to fix:
> expression - paste("Log_Piracy_Ratio = log(", "Piracy_Ratio", ")", sep ="")
> print(expression)
[1] "Log_Piracy_Ratio = log(Piracy_Ratio)"
> Piracy_Ratio - PIR /(1- PIR)
> Log_Piracy_Ratio - log(Piracy_Ratio)
Warning message:
In log(Piracy_Ratio) : NaNs produced
> model - glm(PIR ~ COL + INC + COST + INT, family = binomial)
Error in eval(family$initialize) : y values must be 0= y =1
how can we fix this using R programming.
You need to create the variable mentioned on top of columns 3 and 4 FIRST, then you can proceed using the regression. NOTE: Logit or logistic regression is used ONlY if the dependent variable takes a binary value (0,1), which is NOT the case here!
my data are as follows:
PIR COL INC COST INT
PIR (45,30,40,75,95,15,20,60,92,40,15,20,50,70,95,75,85,40,40,40,25,15,20,60,45,50),
COL (54,62,77,87,92,65,75,52,86,46,24,82,74,70,86,84,68,62,80,35,49,29,32,80,63,88),
INC (6841,4641,5441,2275,1795,14162,25455,493,1060,16675,21395.14936,4810,3720,520,2379,1208,7562,27532,4201,18050,33664,46553,3000,2946,2977
COST (8.5,2.4,14.7,5.9,10.5,8.2,6.9,222.3,386.2,34.1,3.9,4.5,2,10,45.8,29.7,103.7,0,1.9,61.6,10.7,7.6,3.9,1.4,5.4,46.9),
INT (112,82,237,46,41,154,430,15,37,301,352,551,319,98,10,93,44,61,504,68,156,573,351,77,72,50)
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Database Systems

Authors: Carlo Zaniolo, Stefano Ceri, Christos Faloutsos, Richard T. Snodgrass, V.S. Subrahmanian, Roberto Zicari

1st Edition

155860443X, 978-1558604438

More Books

Students also viewed these Databases questions

Question

Describe the nature of negative messages.

Answered: 1 week ago